[Core feature request] Pinning action versions to commit hashes updateable by bots
@krzema12 đang làm issue này rồi.
Từ ngày 27/4/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Kotlin
- Star
- 664
- Fork
- 30
- Merge trung bình
- 4 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 5
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của typesafegithub/github-workflows-kt
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
typesafegithub/github-workflows-kt#2389 · 7 bình luận ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
typesafegithub/github-workflows-kt#2368 · 1 bình luận ·
-
problem
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
typesafegithub/github-workflows-kt#2348 · 2 bình luận ·
-
operational
typesafegithub/github-workflows-kt#1884 · 1 người được giao ·
-
problem
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
typesafegithub/github-workflows-kt#1864 · 5 bình luận ·
Tất cả issue của typesafegithub/github-workflows-kt
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Good First Issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
ankidroid/Anki-Android#21942 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
libre-tube/LibreTube#8781 · 1 bình luận ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
MetrolistGroup/Metrolist#4396 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100