Autoupdating pinned `gh-actions-lock`

Đang mở
#266 0 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go
Lĩnh vực
devtools

Hướng nghiên cứu

The issue discusses pinning the gh-actions-lock extension and mentions .pre-commit-config.yaml, CI, and Dependabot, but does not identify a code entry point or define a chosen solution. Start by reviewing the proposed pre-commit hook idea and the linked discussion in cli/cli#6118; done would require agreeing on an approach and specifying how the pinned version is maintained automatically.

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

Mô tả

Any ideas if there's a way to keep gh-actions-lock extension pinned, but automated automatically?

Currently I guess I will just pin it in CI using gh extension install github/gh-actions-lock --pin v0.4.1 and will update it once I get notification locally when using gh. But gh sends notifications only when I use gh actions-lock, which I assume won't happen very often - main work on the actions.lock will be done by dependabot and command will be executed manually only when new use of some action will be introduced.

Also noticed that this repo itself had outdated pin, submitting a fix - https://github.com/github/gh-actions-lock/pull/265

Extensions currently don't have any manifests or lock files, so there's no general solution - https://github.com/cli/cli/issues/6118

Below is sort of an idea of a hack I came up with in the mentioned issue. Not ideal, since it may mean a fake .pre-commit-config.yaml just for this, but it is a solution (e.g. to use yq to read the pinned version in CI / locally during gh extension install + dependabot support).

12. Kind of a hack, but in theory if gh-action-lock had pre-commit hook, then it would be possible to use it as a manifest both locally and CI (even if pre-commit itself won't be used) and dependabot will help maintain it.

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.