[Core feature request] Pinning action versions to commit hashes updateable by bots
@krzema12 已经在做这个了。
开始于 2025年4月27日。
评估
这个 Issue 还没有评估数据。
描述
What feature do you need?
By default, when using a binding provided by the bindings server, we refer by the major or full version. It can be a branch or a tag. While major version tags/branches change and it's expected, full versions shouldn't. However, technically nothing stops the action owner to hard-reset some full version branch/tag to point to a different commit, and no one will notice it.
That's why, as a part of security hardening, some workflow owners use full SHA-1 of commits they want to use for each action. It guarantees the action's code won't silently change.
Users of github-workflows-kt can already do it using _customVersion constructor argument:
UploadArtifact(
// ...
_customVersion = "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11",
)
However, dependency updating bots cannot update such commit hashes.
In theory we could try allowing such format when specifying a dependency on an action:
@file:DependsOn("actions:checkout:b4ffde65f46336ab88eb53be808477a3936bae11")
but then, even if we make this commit hash be updated to the right value, there's no mechanism to keep the full version in the comment, like shown in the below example.
Do you have an example usage?
uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # v4.1.1
Is there a workaround for not having this feature? If yes, please describe it.
No way to make the dependency updating bots work, just specifying the commit hash as version.
- 主要语言
- Kotlin
- 星标
- 664
- 派生
- 30
- 平均合并
- 4 天 19 小时
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
typesafegithub/github-workflows-kt 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 58/100
typesafegithub/github-workflows-kt#2389 · 7 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 42/100
typesafegithub/github-workflows-kt#2368 · 1 条评论 ·
-
problem
难度 4/5 3-5 天 新手友好度 42/100
typesafegithub/github-workflows-kt#2348 · 2 条评论 ·
-
operational
typesafegithub/github-workflows-kt#1884 · 已指派 1 人 ·
-
problem
难度 3/5 1-2 天 新手友好度 30/100
typesafegithub/github-workflows-kt#1864 · 5 条评论 ·
查看 typesafegithub/github-workflows-kt 的全部 Issue
相似的 Issue
-
Icon Requests 未关闭supported
难度 2/5 1-3 小时 新手友好度 68/100
LawnchairLauncher/lawnicons#4100 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
-
Good First Issue
难度 2/5 1-3 小时 新手友好度 84/100
ankidroid/Anki-Android#21942 ·
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
libre-tube/LibreTube#8781 · 1 条评论 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 84/100
MetrolistGroup/Metrolist#4396 ·