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

Offen
#262 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, go
Bereich
cli, devops

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Go
Sterne
295
Forks
21
Ø Merge
1 T. 3 Std.
Gemergte PRs (30 T.)
64

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/gh-actions-lock

Alle Issues in github/gh-actions-lock

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.