Feature request: allow selected action owners to be explicitly excluded from lockfile pinning
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing how gh actions-lock resolves workflow refs, reports findings such as self-repository-action, and verifies lockfile entries; then inspect runtime enforcement and lockfile parsing. The issue names no source files or tests, so locate those entry points first. Done means exclusions are recorded with reasons in the lockfile, reported during resolution, and treated as compliant by verification and enforcement only when listed.
由索引模型根据 Issue 内容生成。
描述
Problem
Our workflows mix public GitHub-maintained actions with internal actions published by our own organization, e.g.:
steps:
- uses: actions/checkout@v7
- uses: internal-action/build-image@v1
We want SHA-locked integrity for third-party/public actions (actions/*), but our internal actions are deliberately consumed via a floating major tag (@v1). They are released frequently under our own access controls and review process, and we want consumers to pick up patch releases without a lockfile change for every internal release.
Today gh actions-lock has no way to exclude specific actions or owners. Because enforcement requires every dependency of an onboarded workflow to be present in actions.lock, our only options are:
- Lock internal actions too and run
--relockconstantly (heavy churn for every internal release), or - Leave the whole workflow un-onboarded, losing protection for the public actions as well.
Neither is a good fit. Option 2 in particular pushes teams to skip locking entirely.
Proposal
Support an explicit, auditable exclusion recorded in the lockfile itself (not only as a CLI flag), so the runtime can tell "intentionally unlocked" apart from "missing":
# .github/workflows/actions.lock
unlocked:
- owner: internal-action # or a pattern like 'my-org/*'
reason: 'Internal actions, governed by org release process'
Suggested behavior:
gh actions-lockskips resolution for matching refs and reports them as an informational finding (similar toself-repository-action), never silently.--verify/--verify-localtreat matching refs as compliant only if they are listed underunlocked.- Runtime enforcement accepts listed refs unpinned and still requires everything else to be locked.
- Optionally, restrict eligible owners (e.g. same owner/org as the repository, or an org-level policy) so this can't be used to unlock arbitrary third-party actions.
- 主要语言
- Go
- 星标
- 253
- 派生
- 15
- 平均合并
- 19 小时 30 分钟
- 30 天内合并 PR
- 60
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/gh-actions-lock 的其他 Issue
-
Fix mode unpins a reusable workflow call when the same repository is also used as a step action可能已有人在做 @suzuki-shunsuke 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
github/gh-actions-lock#261 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
github/gh-actions-lock#264 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 42/100
github/gh-actions-lock#262 ·
维护者通常 1 天内回复
-
Dependabot drops an unchanged transitive dependency when bumping a composite action可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 30/100
github/gh-actions-lock#257 · 1 条评论 ·
维护者通常 1 天内回复
-
--migrate-local-actions rewrites action files in nested worktrees and submodules可能已有人在做 @aksestok 于 2 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 20/100
github/gh-actions-lock#253 ·
维护者通常 1 天内回复
查看 github/gh-actions-lock 的全部 Issue
相似的 Issue
-
Routing rule or circuit breaker trip expression with an unknown CEL function hangs daprd可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
[falco-talon] Setting `podAnnotations` makes the chart fail to render可能已有人在做 @RaphaelFakhri 今天认领。 未关闭needs-kind
难度 1/5 1 小时以内 新手友好度 88/100
falcosecurity/charts#1084 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
DataDog/terraform-provider-datadog#4479 ·
维护者通常 2 天内回复
-
component/tests needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
NVIDIA/nodewright#967 ·
维护者通常 1 天内回复