forgejo bump-formula: pre-receive 403 on auto-token git push #81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Coily's forgejo release pipeline lands the tag + Release end-to-end (verified with v2.38.0 cut at run 34), but the
bump-formulajob fails withHTTP 500: PushRejected. Forgejo server logs trace this to the internalpre-receivehook returning 403:The Contents API endpoint accepts the PUT (HTTP 200 on GET; auth is recognized), but the underlying git push that forgejo performs to commit the rewrite is rejected at the pre-receive hook with 403. Looking at this from outside: the auto-issued
${{ github.token }}has API-layer write scope but lacks git-layer push permission.Workflow has
permissions: contents: writeat both top-level and job-level; doesn't help.Consequence
brew upgradeget v2.37.0.Candidate fixes
bump-formulaviaforgejo_token:input. Bypasses the auto-token's git-layer gap. Cleanest fix. Decision needed: which SSM path, who creates the PAT.Cleanup
Stray
v2.23.0tag was created during an earlier debug run (the tag-bump action ran before all historical tags were backfilled to forgejo, so it computed "v2.22 + patch" instead of "v2.37 + patch"). The historical v2.23.0 commit on github is a different SHA. Forgejo's v2.23.0 now points at the post-rebase main HEAD. Decide whether to delete and recreate at the correct historical SHA, or leave as-is (brew never installs from v2.23 again).