Feature request: Add support for locking actions that use YAML anchors
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The payload names no source files, so start by finding where the tool reads uses: values from workflow YAML and how it parses those documents. Reproduce with the anchored Checkout example in the issue and see whether the anchor-aliased uses: line is skipped. Done means the aliased step is detected and locked, and the expected output in the issue is confirmed with the maintainers first, since it replaces the commit SHA with a tag.
由索引模型根据 Issue 内容生成。
描述
Current versions of actions-lock (as of v0.4.0) fail to detect and lock actions that use YAML anchors in the uses: field.
For example, the following configuration containing YAML anchors remains unhandled:
# `gh actions-lock` does not handle `uses:` that use YAML anchors
- name: Checkout
uses: &checkout-uses actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: &checkout-with
token: ...
persist-credentials: ...
# Run the same action again using the same version and the same parameters
- name: Checkout again
uses: *checkout-uses
with: *checkout-with
Proposed Feature
Implementation of YAML anchor parsing enables actions-lock to correctly detect and process these actions as lock targets.
The expected behavior involves processing such configurations as follows:
- name: Checkout
- uses: &checkout-uses actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ uses: &checkout-uses actions/[email protected]
with: &checkout-with
token: ...
persist-credentials: ...
- name: Checkout again
uses: *checkout-uses
with: *checkout-with
- 主要语言
- Go
- 星标
- 295
- 派生
- 21
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 64
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/gh-actions-lock 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
github/gh-actions-lock#271 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
github/gh-actions-lock#272 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
github/gh-actions-lock#268 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 58/100
github/gh-actions-lock#267 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
github/gh-actions-lock#266 · 1 个 reaction ·
维护者通常 1 天内回复
查看 github/gh-actions-lock 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
[FEATURE]: Set fieldPath and reason on the CEL validation rules可能已有人在做 @bjosv 今天认领。 未关闭enhancement needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
valkey-io/valkey-operator#618 ·
维护者通常 3 天内回复
-
agent-butler-finding bug
难度 2/5 1-3 小时 新手友好度 82/100
jordansmall/spindrift#6414 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Icinga/icinga-kubernetes#294 ·
维护者通常 4 天内回复
-
kind/design sig/ui
难度 1/5 1 小时以内 新手友好度 92/100
kubermatic/dashboard#8449 ·
维护者通常 1 天内回复