Feature request: Add support for locking actions that use YAML anchors
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
調査の方向性
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時間
- マージ済み PR(30日)
- 64
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-actions-lock のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
github/gh-actions-lock#267 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
github/gh-actions-lock#266 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
github/gh-actions-lock#264 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 42/100
github/gh-actions-lock#262 ·
メンテナーはふだん 1 日以内に返信
-
Dependabot drops an unchanged transitive dependency when bumping a composite action対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
github/gh-actions-lock#257 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
github/gh-actions-lock の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
kubeflow/semantic-operator#52 ·
メンテナーはふだん 10 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PramodBasavarajMenasi/siftwise#52 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
dragonflydb/dragonfly-operator#619 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
lazygit is not Rustオープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100