Action attestation check is not pinned to the release workflow
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 action.yml:168-172 中的证明验证调用,然后将 docs/ci.md:222 中记录的命令与 .goreleaser.yaml:83-88 中的发布命令进行比较。按照验收标准中的说明更新验证命令及相关措辞,然后运行列出的快速测试和 lint。签名者工作流的名称保持一致,且注释准确描述校验和验证时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Summary
The Action verifies the downloaded archive with gh attestation verify --repo, which accepts an attestation from any workflow of the repository. The comment and docs/ci.md say it checks provenance from the release workflow. The cosign command in the release notes does pin the workflow and tag.
Where
action.yml:168-172docs/ci.md:222.goreleaser.yaml:83-88(cosign command with--certificate-identity-regexpfor release.yml at a tag)
Details
With only --repo, the GitHub CLI checks the source repository and that the signing identity is some workflow under it; it does not require a particular workflow or ref (per the CLI documentation; not run against a counter-example). The comment "Verify the archive against the signed checksum list" also overstates the previous step: checksums.txt is used as downloaded and its signature bundle is not verified there, so the attestation is the single authenticity check.
Impact
Defense in depth: the property the docs promise (only the tag-triggered release workflow can produce an archive the action will run) is weaker than stated. Using the gap needs write access to the repository, so this is hardening, not a remote problem.
Suggested fix
Add --signer-workflow TMHSDigital/Spackle/.github/workflows/release.yml to the gh attestation verify call in action.yml and to the commands in docs/ci.md and the release footer, and, where the installed gh supports it, --source-ref "refs/tags/<tag>". Reword the comment to "against the checksum list of the release".
Acceptance criteria
- The verify call names the signer workflow
- docs/ci.md and the release footer show the same command
- The comment describes what the checksum step does
Getting started
- Relevant files: action.yml, docs/ci.md, .goreleaser.yaml
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: docs/ci.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: ci|action.yml|attestation-verify
- 主要语言
- Go
- 星标
- 0
- 派生
- 1
- 平均合并
- 8 小时 14 分钟
- 30 天内合并 PR
- 3
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/Spackle 的其他 Issue
-
ci severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#205 ·
维护者通常 1 天内回复
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 82/100
TMHSDigital/Spackle#199 ·
维护者通常 1 天内回复
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 87/100
TMHSDigital/Spackle#195 ·
维护者通常 1 天内回复
-
documentation good first issue severity: medium
难度 1/5 1 小时以内 新手友好度 90/100
TMHSDigital/Spackle#188 ·
维护者通常 1 天内回复
-
documentation good first issue severity: medium
难度 2/5 1-3 小时 新手友好度 84/100
TMHSDigital/Spackle#187 ·
维护者通常 1 天内回复
查看 TMHSDigital/Spackle 的全部 Issue
相似的 Issue
-
bug effort:s impact:med raised-by:worker risk:low to:worker
难度 2/5 1-3 小时 新手友好度 78/100
medici-finance/assay#8120 · 1 条评论 ·
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
agent-substrate/substrate#4308 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
celestiaorg/celestia-app#8877 ·
维护者通常 1 天内回复
-
sweep
难度 1/5 1 小时以内 新手友好度 84/100
bketelsen/truenas-mcp#112 ·
维护者通常 1 天内回复