--verify passes when a local composite action's SHA pins are missing from the lockfile
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 56/100
调研方向
Start by reading the --verify implementation and the code that scans local composite actions and compares their pins with the lockfile. Reproduce the case with the SHA-pinned composite step and tag-keyed lockfile entry described here, then run the relevant verification tests. Done means --verify reports the missing SHA-keyed entry as an error instead of declaring all workflows valid.
由索引模型根据 Issue 内容生成。
描述
gh actions-lock --verify (v0.4.1) reports every workflow valid when a local composite action pins its steps by commit SHA but the lockfile records those dependencies by tag. The runner rejects the same repository at job setup, so the frozen check in CI passes while the jobs never start.
A workflow calls a local composite action (uses: ./.github/actions/setup) whose step pins actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0. The lockfile lists that dependency as actions-rust-lang/[email protected], with commit sha1-ecabd13d1c56bd1345c230e542e9144811ad706f. Locally:
$ gh actions-lock --verify
Scanning 13 workflows
3 actions are pinned to a bare SHA without a tag ref
↳ run `gh actions-lock` to pin to tagged releases
All 13 workflows valid
The runner fails the job before any step runs (tox-dev/peryx run 42858830831):
##[error]lockfile missing pin for actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f
I expected --verify to report the missing entry, since its help text says it "fails if the lockfile is incomplete or the runner would reject a pin". Keying the entry by the SHA ('actions-rust-lang/setup-rust-toolchain@ecabd13…':) satisfies the runner, which is what tox-dev/peryx#2417 ended up doing. Related: #183, on how composite actions should lock their own dependencies.
- 主要语言
- Go
- 星标
- 317
- 派生
- 24
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 50
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/gh-actions-lock 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
github/gh-actions-lock#271 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 38/100
github/gh-actions-lock#284 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
github/gh-actions-lock#280 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
github/gh-actions-lock#279 ·
维护者通常 1 天内回复
-
Fix-mode `--json` reports a `sha-as-ref` warning for a ref the same run just rewrote to a tag可能已有人在做 @Okabe-Junya 于 5 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
github/gh-actions-lock#276 ·
维护者通常 1 天内回复
查看 github/gh-actions-lock 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
prime-radiant-inc/evener#6325 ·
维护者通常 1 天内回复
-
team:library-maintainers
难度 2/5 1-3 小时 新手友好度 82/100
padok-team/burrito#1208 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
bazel-contrib/rules_go#4784 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 78/100
betterleaks/betterleaks#484 ·
维护者通常 1 天内回复