Allow placing `actions.lock` in `.github` folder (not in workflows)

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

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

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, go
領域
cli, devops

調査の方向性

The lockfile path is resolved by the CLI extension written in Go; start from wherever workflows/actions.lock is referenced and how the lock file is located and read. Add .github/actions.lock as a fallback while keeping .github/workflows/actions.lock as the higher-priority path. Done when both locations resolve correctly and a test covers the priority order.

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

説明

Background & Motivation

When pushing changes to .github/workflows, I want to automatically update and commit (create PR) actions.lock within CI using GITHUB_TOKEN. To make this possible, actions.lock needs to be supported in an alternative path outside of .github/workflows, as GITHUB_TOKEN is not allowed to write content in workflows folder.

Because standard lockfile updates (without --relock) are purely additive operations, I believe that allowing automated lockfile updates upon push (create PR) does not cause unintended modifications or regression hazards.

Proposed Changes

  • Support .github/actions.lock: Allow actions.lock to reside directly in the .github/ directory as an alternative path.
  • Resolution Priority: Continue support for .github/workflows/actions.lock. This allows user can specify the hash for the action that won't be changed by CI workflow.
主要言語
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 を短くまとめたダイジェスト。