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

Aperta
#262 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, go
Ambito
cli, devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Go
Stelle
253
Fork
15
Merge medio
19h 30m
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-actions-lock

Tutte le issue di github/gh-actions-lock

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.