自动安装未固定版本的第三方 Go 可执行文件
原文依据:2 处清单要求安装 `github.com/cweill/gotests/...@latest`。`latest` 会随时间变化,用户无法仅凭本次审查知道将下载和运行哪一版代码;而正文的 Testify 指南并未显示必须使用 gotests。
如果宿主自动处理依赖,未来发布或被接管的上游版本可能以开发环境权限执行,接触工作区文件及 Go 构建环境。这里没有证据表明当前版本已经恶意。
清单会在安装条件下获取 `github.com/cweill/gotests/...@latest`,版本未固定,未来解析到的代码可能变化。这是供应链与可复现性风险,并不证明该依赖恶意;正文所述用途是 Testify 测试指导,也未在可见内容中说明为何必须安装 gotests。用户可要求作者固定经审核的版本和校验信息,或禁用自动安装。
homepage: https://github.com/samber/cc-skills-golang requires: bins: - go - gotests install: - kind: go package: github.com/cweill/gotests/...@latest bins: [gotests] skill-library-version: "1.11.1"查看另外 1 个位置
name: golang-stretchr-testifydescription: "Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com/stretchr/testify."user-invocable: true