[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時間
- マージ済み PR(30日)
- 5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
難易度 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 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100