ci: rename the FORGEJO_TOKEN secret to ACTIONS_TOKEN (FMG-6) #12
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
fmartingr/smtp2shoutrrr!12
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/full-stack-developer/fmg-6-actions-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?
Both
secrets.FORGEJO_TOKENreferences in.github/workflows/release.ymlare nowsecrets.ACTIONS_TOKEN: the registry login password and theGITEA_TOKENhanded to GoReleaser. Those were the only two occurrences anywhere in the repository — nothing else, including the README and the goreleaser config, named the secret.Nothing else about the release job changes:
-u ${{ github.actor }}andGORELEASER_FORCE_TOKEN: giteaare untouched.Needs a secret to exist before the next tag
The rename only redirects which secret the job reads.
ACTIONS_TOKENhas to be defined on the repository (or its owner/org) with the same reach the release needs —write:packageongit.nakama.town/fmartingr/, plus repo write for the release upload — or the release job will get an empty value and repeat the401 Unauthorized: reqPackageAccessfailure from FMG-5. Note that the login step will still printLogin Succeededin that case, for the reason described on #10.I could not verify the secret exists:
tea actions secret listrefuses for this credential (user should be the owner of the repo), and Forgejo does not expose a secret's value, owner, or scopes through the API.Checks
CI-config change only, no Go code touched. I parsed both workflow files to confirm they are still valid YAML and that the release job's env block resolves to
GITEA_TOKEN: ${{ secrets.ACTIONS_TOKEN }}. There is no Go toolchain, golangci-lint, or goreleaser in this environment, so the repository'sformat/lint/test/build/checktargets were not run locally — CI covers them on this PR.Closes FMG-6