Skip to content

fix(ci): pin gh release commands to fork via GH_REPO - #9

Merged
JOY (JOY) merged 1 commit into
mainfrom
fix/sync-release-gh-repo
Jul 16, 2026
Merged

fix(ci): pin gh release commands to fork via GH_REPO#9
JOY (JOY) merged 1 commit into
mainfrom
fix/sync-release-gh-repo

Conversation

@JOY

@JOY JOY (JOY) commented Jul 16, 2026

Copy link
Copy Markdown

Problem

The "Create release" step fails with:

HTTP 403: Resource not accessible by integration (https://api.github.com/repos/blockscout/frontend/releases)

gh release create/delete runs without an explicit repo. The job adds a git remote named upstream (blockscout/frontend) and gh CLI prefers the remote named upstream when resolving its default repo, so the commands target the upstream repo instead of the fork and fail with 403. The error URL in the logs is direct evidence.

History (corrected during review): the bug has been latent since the workflow's first commit (bbf85a2, 2026-02-20). The clean-merge happy path first reached "Create release" on 2026-06-22 (v2.8.1, run 27986584388) and has failed with the same 403 ever since (v2.9.2 run 29318879341, v2.9.3 run 29507390797). The existing releases (v2.7.3, v2.8.0-alpha.2, v2.8.0) were all created manually (author: JOY), not by this workflow - it has never successfully created a release.

Only the release step is affected - merge, push, tags, and Docker build all succeed.

Fix

Set GH_REPO: ${{ github.repository }} on the step. Verified: GH_REPO fully overrides remote-based resolution for gh release commands, and the "Create PR on conflict" step is immune (uses explicit repos/${GITHUB_REPOSITORY}/... paths).

Follow-up (after merge)

Backfill missing releases: v2.8.1, v2.9.1, v2.9.2, v2.9.3 (latest).

🤖 Generated with Claude Code

Since the job adds a git remote named 'upstream' (blockscout/frontend),
gh CLI resolves it as the default repo and 'gh release create/delete'
target the upstream repo, failing with HTTP 403. Releases have been
silently missing since v2.8.1. Set GH_REPO to pin gh to the fork.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@JOY
JOY (JOY) merged commit e633f09 into main Jul 16, 2026
11 of 13 checks passed
@JOY
JOY (JOY) deleted the fix/sync-release-gh-repo branch July 16, 2026 14:58
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