跳到主要内容
知仓学习社ZHICANG

go-cli-release-automation

Design, implement, and review secure Go CLI release automation with versioned tags, GoReleaser, GitHub Actions, checksums, signing, provenance, chan…

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少10 个文本文件,12 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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

  1. Define version, supported targets, artifact names, and release authority.
  2. Validate release configuration without publishing.
  3. Build final artifacts exactly once from a clean tagged commit and generate checksums.
  4. Publish through pinned, least-privilege CI with protected environments.
  5. Update package-manager metadata from the published artifacts.
  6. Install and smoke-test representative artifacts.
  7. 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 拉。许可未声明的技能只给原始仓库链接,不打包。