Release hotfix: set GH_REPO so gh release can find the repo#23
Merged
Conversation
The v0.1.0 release run completed all the substantive steps — 4 binary
builds, SBOM, SHA256SUMS, SLSA build provenance, cosign keyless sig —
but the final "Create or update GitHub Release" step failed with:
failed to run git: fatal: not a git repository (or any of the
parent directories): .git
The wohl checkout lives at `wohl/` (so the relay sibling can co-locate
at `../relay`), so $GITHUB_WORKSPACE itself has no `.git`. `gh release
view/create/upload` falls back to a git remote lookup and errors out.
Setting `GH_REPO: ${{ github.repository }}` tells the gh CLI which
repo to act on without needing git context.
Re-running the workflow via workflow_dispatch on the existing tag
v0.1.0 will redo the full pipeline — fresh OIDC, fresh sigs, fresh
attestations — and upload everything. No retag needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
The v0.1.0 release run completed all the substantive work cleanly:
gh release create/upload:Why
The wohl checkout lives at
wohl/(so the relay sibling can co-locate at../relay).$GITHUB_WORKSPACEitself has no.git, sogh release view/create/uploadcan't infer the repo via the normal git remote lookup.Fix
GH_REPO: ${{ github.repository }}in the step's env. One line, with a comment so the next person doesn't re-trip on it.After merge
workflow_dispatchon the existing tagv0.1.0re-runs everything. Each run gets fresh OIDC, fresh attestations, fresh cosign signatures — tied to the new run, not the failed one. Tag itself stays.🤖 Generated with Claude Code