ci: give GoReleaser the GitHub token through its token file #87
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jwarykowski/shepherd!87
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/release-token"
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?
On Forgejo Actions the runner's own GITHUB_TOKEN (Forgejo's) wins over the one a step sets, so GoReleaser would send a Forgejo token to GitHub and fail with
401 Bad credentials, as drover v0.3.0 just did. Same fix as keybars: check GH_RELEASE_TOKEN withgh api user, write it to GoReleaser's token file and unset GITHUB_TOKEN before releasing.Merge before #85, which triggers the 0.21.0 release.