Autoupdating pinned `gh-actions-lock`

オープン
#266 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
github-actions, go
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
295
フォーク
21
平均マージ
1日 3時間
マージ済み PR(30日)
64

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-actions-lock のほかの issue

github/gh-actions-lock の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。