devops -> main #51

Closed
akinus wants to merge 0 commits from devops into main
Owner

Manual PR after pipeline fix.

Manual PR after pipeline fix.
The 'Create Forgejo release + upload artifact' step has been failing
with HTTP 403 'user should have a permission to write to a repo'
because secrets.TAP_TOKEN is the maintainer's cross-repo token
(write:repository scope on the homebrew tap) and does NOT have
write permission on this akclip repo.

Forgejo Actions injects ${{ github.token }} as the auto-token with
write permission to the current repo. That's the right token for:
  - POST /repos/{owner}/{repo}/releases        (release create)
  - POST /releases/{id}/assets                 (asset upload)
  - DELETE /repos/{owner}/{repo}/branches/...
  - POST /repos/{owner}/{repo}/issues/.../labels

TAP_TOKEN is still used for the cross-repo tap sync, which is the
only place a cross-repo write is required.

This also brings the bottles job's FORGEJO_TOKEN in line with the
release job's auto-token, so the entire in-repo release path uses
one identity.
akinus closed this pull request 2026-06-28 01:27:02 +00:00
All checks were successful
Level 1 — Main / detect (push) Successful in 20s
Level 1 — Main / build-iterate (push) Successful in 1m31s
Level 1 — Main / release (push) Successful in 1m33s
Level 1 — Main / bottles (push) Successful in 1m46s
Level 1 — Main / formula-update (push) Successful in 29s
Level 1 — Main / tidy (push) Successful in 2s
Level 2 — Devops / build-iterate (push) Successful in 1m37s
Level 2 — Devops / create-pr (push) Successful in 7s
Level 2 — Devops / close-merged-issue (push) Successful in 13s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
akinus/akclip!51
No description provided.