Tag releases so callers can pin to versions

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, github, github-actions
Ambito
ci-cd, release

Direzione di ricerca

Start by reading the repository’s reusable workflow setup and existing release or tag practices; the issue does not name specific files or tests. Work out how to publish SemVer tags with release notes describing workflow changes, and consider the optional moving major tag. Done means callers can pin to a tagged version and Dependabot can update those pins.

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

Descrizione

Callers that follow the GitHub hardening guidance pin these workflows to a commit SHA. Without tags the only version comment available is # main, which causes two problems:

  • zizmor's ref-version-mismatch fails on every pull request in every caller as soon as main moves, even when the change touches a workflow the caller doesn't use. In owncloud/ocis-groupware this happened twice in two days (#108 changed only acceptance.yml, #110 changed only translation-sync.yml) and broke CI on owncloud/ocis-groupware#174, owncloud/ocis-groupware#176, owncloud/ocis-groupware#177 and owncloud/ocis-groupware#178.
  • Dependabot can't update the pins, because it only moves SHA pins between tags, not along a branch. Every bump has to be done by hand in every caller.

Proposal: publish SemVer tags (v1.0.0, …), ideally as GitHub releases with notes listing which workflows changed. Callers can then pin @<sha> # v1.0.0, and their existing Dependabot github-actions config will open bump PRs on its own.

Optional: a moving major tag (v1) for callers who don't pin SHAs.

Lingua principale
Makefile
Stelle
0
Fork
1
Merge medio
12h
PR unite (30g)
8

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 owncloud/reusable-workflows

Tutte le issue di owncloud/reusable-workflows

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.