Skip to content

fix: pass --repo to gh release edit in publish-release job - #17

Merged
abienkowski merged 1 commit into
mainfrom
fix/release-publish-checkout
Aug 18, 2026
Merged

fix: pass --repo to gh release edit in publish-release job#17
abienkowski merged 1 commit into
mainfrom
fix/release-publish-checkout

Conversation

@abienkowski

Copy link
Copy Markdown
Collaborator

Problem

After #15 and #16 fixed npm ci and the missing Quint install, the Release pipeline ran end-to-end for the first time — release-verify, version, and all three release-{go,rust,ts} jobs succeeded, producing a fully valid v0.2.7 draft (binaries, TS archive, 6 SBOMs, Cosign-signed public GHCR images). Only the final publish-release job failed:

Run gh release edit "v0.2.7" --draft=false --prerelease=false
failed to run git: fatal: not a git repository (or any of the parent directories): .git

The job has no actions/checkout step, so gh can't infer which repository to target.

Fix

Pass --repo "${{ github.repository }}" explicitly instead of adding an unnecessary checkout step.

Verification

  • v0.2.7 was manually published (gh release edit v0.2.7 --draft=false --prerelease=false) after independently verifying its artifacts:
    • 3 binaries/archives (Go, Rust, TS tarball) attached
    • 6 SBOMs (SPDX + CycloneDX × 3) attached
    • All 3 GHCR images public and cosign verify-able against the release.yml/push/refs/heads/main OIDC identity
  • This fix ensures the next auto-triggered release (v0.2.8+) publishes without manual intervention — the last of 3 sequential release-pipeline bugs found while validating Release pipeline validation: SBOM, signing, draft to publish #8.

Part of epic #4; completes #8 pipeline validation once verified on the next release.

The publish-release job has no checkout step, so gh CLI cannot infer the
target repository from git context:

  failed to run git: fatal: not a git repository (or any of the parent
  directories): .git

This was the third and final blocker in the release pipeline (after #15's
npm ci fix and #16's Quint install fix). v0.2.7 was manually published via
'gh release edit' after confirming all its artifacts (Go/Rust/TS
binaries+archive, 6 SBOMs, Cosign signatures, public GHCR images) were
already valid. This fix ensures the *next* release (v0.2.8+) auto-publishes
without manual intervention.
@abienkowski
abienkowski merged commit 5c93474 into main Aug 18, 2026
6 checks passed
@abienkowski
abienkowski deleted the fix/release-publish-checkout branch August 18, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant