Make release tags immutable and require the tag commit on main #5

Stängd
öppnade 2026-10-08 21:12:33 +00:00 av supernaut · 0 kommentarer
Ägare

What

release.yml pushes the version tag without checking it exists, and does not check the tag commit is on main. The README promises immutable tags.

Why

Infra pins the image by tag. A rewritten or off-branch tag changes what production runs.

Failing case

Re-run the release job, or move the git tag, and the registry tag is overwritten. A tag pushed on a feature branch builds and ships.

Fix

Before podman push, run podman manifest inspect on the tag and fail if it exists. After a full-depth checkout, run git merge-base --is-ancestor "$GITHUB_SHA" origin/main and fail if not.

Done when

  • A second run for the same tag fails with a clear message
  • A tag on a non-main commit fails the release
## What `release.yml` pushes the version tag without checking it exists, and does not check the tag commit is on `main`. The README promises immutable tags. ## Why Infra pins the image by tag. A rewritten or off-branch tag changes what production runs. ## Failing case Re-run the release job, or move the git tag, and the registry tag is overwritten. A tag pushed on a feature branch builds and ships. ## Fix Before `podman push`, run `podman manifest inspect` on the tag and fail if it exists. After a full-depth checkout, run `git merge-base --is-ancestor "$GITHUB_SHA" origin/main` and fail if not. ## Done when - [ ] A second run for the same tag fails with a clear message - [ ] A tag on a non-main commit fails the release
supernaut lade till detta till projektet Bitborg Keycloak 2026-10-08 21:14:29 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-keycloak#5
Ingen beskrivning angiven.