ci: require approval from another maintainer before running release workflows

Aperta
#2,438 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, java

Direzione di ricerca

Start by reading the .github/workflows/release.yml, .github/workflows/publish-cli.yml and .github/workflows/publish-webui.yml workflows, then check the repository’s release process documentation and current publishing secrets. The issue is done when publishing waits for approval from a different maintainer, self-review is blocked, and publishing credentials are scoped to the protected environment.

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

Descrizione

Problem

The release workflows run automatically as soon as a v* tag is pushed:

  • release.yml builds and pushes the server and web UI images to ghcr.io and creates the GitHub release.
  • publish-cli.yml and publish-webui.yml publish the ovsx CLI and the web UI library to the package registry.

None of the jobs use a GitHub environment, so nothing requires a second pair of eyes before artifacts are published. Anyone who can push a tag can trigger a release, and a compromised maintainer account or token would be enough to publish artifacts that downstream operators pull.

Proposal

Gate the publishing jobs behind a protected GitHub environment (for example release) that requires approval from a maintainer other than the one who triggered the run.

  • Create a release environment with required reviewers (the maintainers team) and "Prevent self-review" enabled.
  • Add environment: release to the jobs that publish or push artifacts in release.yml, publish-cli.yml and publish-webui.yml. Build and prepare jobs can stay ungated.
  • Move any publishing credentials (registry tokens and similar) into environment secrets so they are only exposed after approval.
  • Optionally restrict who can create v* tags with a tag protection ruleset.
  • Document the approval step in the release process.

Acceptance criteria

  • A pushed v* tag does not publish anything until another maintainer approves the run.
  • The person who pushed the tag cannot approve their own release.
  • Publishing secrets are scoped to the environment.
Lingua principale
Java
Stelle
2.1k
Fork
362
Merge medio
1g 3h
PR unite (30g)
44

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 eclipse-openvsx/openvsx

Tutte le issue di eclipse-openvsx/openvsx

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.