go-cli-release-automation
Design, implement, and review secure Go CLI release automation with versioned tags, GoReleaser, GitHub Actions, checksums, signing, provenance, chan…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Go CLI Release Automation
Treat release automation as a state transition with verifiable inputs, immutable
artifacts, least privilege, and an explicit recovery path.
Core Workflow
- Define version, supported targets, artifact names, and release authority.
- Validate release configuration without publishing.
- Build final artifacts exactly once from a clean tagged commit and generate checksums.
- Publish through pinned, least-privilege CI with protected environments.
- Update package-manager metadata from the published artifacts.
- Install and smoke-test representative artifacts.
- Record partial state and recover without silently replacing released bytes.
Read Next
| Task | Load |
|---|---|
| Design and validate the pipeline | guidelines.md, workflows/validate-release-config.md |
| Publish a tagged release | workflows/publish-tagged-release.md |
| Publish Homebrew metadata | workflows/publish-homebrew-package.md |
| Recover a failed release | workflows/recover-failed-release.md |
| Review security and reproducibility | references/release-automation/rules.md |
| Review examples | references/release-automation/examples.md |
Guardrails
- Never release from an unreviewed or dirty source state.
- Do not grant write tokens to pull-request jobs or untrusted code.
- Pin CI actions and use current, supported GoReleaser configuration.
- Do not treat build tags as authorization controls.
- Do not overwrite published artifacts under the same version.
- Do not accept locally rebuilt bytes as recovery evidence.
Source Notes
Guidance is transformed and paraphrased from Marian Montagnino,
Building Modern CLI Applications in Go (Packt, 2023), Chapters 7 and 12-14,
and Ricardo Gerardi, Powerful Command-Line Applications in Go (2021).
Verify current configuration against https://goreleaser.com/,
https://docs.github.com/en/actions/reference/security/secure-use, and the
target package manager. Current GoReleaser deprecations must be checked before use.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/LVTD-LLC/skills/skills/go-cli-release-automation/SKILL.md