Feature request: Add support for locking actions that use YAML anchors
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 253
- Fork
- 15
- Merge trung bình
- 19 giờ 30 phút
- Pull request đã merge (30 ngày)
- 60
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
-
Fix mode unpins a reusable workflow call when the same repository is also used as a step actionCó thể đã có người làm @suzuki-shunsuke đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/gh-actions-lock#261 ·
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 · 1 bình luận ·
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
-
--migrate-local-actions rewrites action files in nested worktrees and submodulesCó thể đã có người làm @aksestok đã nhận 2 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 20/100
github/gh-actions-lock#253 ·
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ự
-
mqtt_paho: transformer.DeleteExtension and DeleteAttribute make WritePubMessage failCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
cloudevents/sdk-go#1349 ·
-
getChaosHub always returns totalFaults "0"Có thể đã có người làm @Aryanbhargava18 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
litmuschaos/litmus#5710 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
vtselect: data race in Tempo search tags APIs for invalid TraceQL queriesCó thể đã có người làm @Shubham19032004 đã 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 78/100
VictoriaMetrics/VictoriaTraces#304 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kn secret create --tls-cert creates the certificate under the wrong keyCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Routing rule or circuit breaker trip expression with an unknown CEL function hangs daprdCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày