Feature request: minimum release age (cooldown) for resolved pins
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by tracing the entry points for gh actions-lock, --relock, --verify, and --no-fix, focusing on how actions.lock references are resolved and checked. Compare the proposed --min-age behavior across initial pinning, relocking, ref narrowing, and verification, then clarify the fallback and configuration semantics before implementation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add an option to exclude releases published less than N days ago when resolving action references into lockfile pins — the same "cooldown" concept as pinact's -min-age, Dependabot's cooldown, or the npm ecosystem's minimumReleaseAge settings, applied to actions.lock.
Motivation
- Avoiding freshly-published releases is one of the cheapest supply-chain defenses. Recent research found that most compromised packages are detected and removed within about a week of publication (see https://nesbitt.io/2026/03/04/package-managers-need-to-cool-down.html), so simply not adopting versions younger than a few days moves consumers out of the blast window.
- Automated update paths already have workarounds: tools like Renovate (
minimumReleaseAge) and Dependabot (cooldown) can gate their own update proposals. - But when a maintainer runs
gh actions-lockorgh actions-lock --relockmanually, the tool always resolves the current latest SHA. There is no substitute on this path — unless the tool itself offers an age gate, manual relocking can pull in a release published minutes ago.
Prior art
- Dependabot
cooldown(default-days,semver-*-days): version updates wait out a cooldown by default (3 days); security updates bypass it. Same vendor, same problem space. - npm ecosystem: npm CLI
min-release-age, pnpmminimumReleaseAge(on by default since pnpm 11), YarnnpmMinimalAgeGate, Buninstall.minimumReleaseAge. - pinact
-min-age/--verify-min-age: the direct predecessor for pinning GitHub Actions; filters candidate versions by tag commit date / release publish date, and can verify existing pins against the same floor. - action-locker
--min-age-days: a third-party lockfile tool with the same feature, including a fallback mode that walks back to the newest release that clears the age floor instead of hard-failing. - Renovate
minimumReleaseAge: feasible here because GitHub tag/release lookups expose release timestamps — the same data sourcesactions.lockresolution already touches.
Proposed semantics (strawman)
- A
--min-age <duration>flag and/or a lockfile/config field. - Applied wherever a version is selected: initial pinning,
--relock, and ref narrowing (e.g.@v4resolves to the newestv4.x.ytag that clears the age floor). - When no version satisfies the window: either fail-closed with a clear error, or fall back to the newest release that does (action-locker style) — open to maintainer preference.
--verify/--no-fixcould additionally flag pins younger than the window (the pinact--verify-min-ageequivalent), so CI can enforce the policy without restricting manual runs.
Notes
- Checked
gh actions-lock --help(v0.1.6): no age-related option exists. - I couldn't find an existing issue or discussion covering this (searched this repo's issues,
github/actions-lockfile,cli/cliRFC #13314, andgithub/roadmap).
- Ngôn ngữ chính
- Go
- Star
- 295
- Fork
- 21
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 64
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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 github/gh-actions-lock
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
github/gh-actions-lock#267 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
github/gh-actions-lock#266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
github/gh-actions-lock#264 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
github/gh-actions-lock#262 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dependabot drops an unchanged transitive dependency when bumping a composite actionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
github/gh-actions-lock#257 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của github/gh-actions-lock
Issue tương tự
-
Wayfinder sample agents don't reach the Data Plane on the quickstart packCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởType/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
thunder-id/thunderid#6402 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] ListCanteens and ListAvailableCanteenTags return Unimplemented (handlers are misnamed)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TUM-Dev/Campus-Backend#678 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(app): fail closed if GetGeneralSetting fails during initializationCó thể đã có người làm @kalavt đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
agent-ready area:dsl
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
jmbarzee/temporal-architect#407 ·
Maintainer thường phản hồi trong vòng 1 ngày