Dependabot drops an unchanged transitive dependency when bumping a composite action

Đang mở
#257 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Một pull request liên quan đã được merge.

  • #260 của @nodeselector — đã merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go
Lĩnh vực
build-system, devtools

Hướng nghiên cứu

The bug sits in how gh-actions-lock regenerates the nested dependency edges of composite actions, and the payload names no specific file. Start by reproducing with the Dependabot-style bump of update-flake-lock from v28 to v29 and comparing the regenerated lockfile against the output of the workaround command with --relock --no-narrow. Done means --verify passes after a plain regeneration without the workaround flags and the nested write-file-action entry is retained.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened

A grouped Dependabot version update bumped DeterminateSystems/update-flake-lock from v28 to v29 and regenerated actions.lock in the same commit. The regenerated entry for update-flake-lock@v29 is missing one of its nested dependencies, so gh actions-lock --verify fails:

 Lockfile doesn't match locked manifest DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42
  determinatesystems/update-flake-lock@v29 at locked commit da03c0f078bc uses DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42, but its lockfile entry determinatesystems/update-flake-lock@v29 does not record it

Dependabot also deleted the top-level damianreeves/write-file-action@6929a9a… dependency entry.

Current Workaround
gh actions-lock .github/workflows/update_nix.yml --relock --ignore-local-actions --no-narrow

This restores the entry and the edge, and --verify passes.

Versions
  • gh-actions-lock v0.4.0 (CI verify and local relock), run with --ignore-local-actions --no-narrow
  • Lockfile schema v0.0.3

Possibly related: #183 (composite actions and their nested pins).

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/gh-actions-lock

Tất cả issue của github/gh-actions-lock

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.