ci: require approval from another maintainer before running release workflows

Abierto
#2,438 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Java
Estrellas
2.1k
Forks
362
Merge medio
1 d 3 h
PR fusionados (30 d)
44

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eclipse-openvsx/openvsx

Todos los issues de eclipse-openvsx/openvsx

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.