ci: publish with the org FORGEJO_PAT, not the Actions token #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MCPWEB-2-publish-uses-forgejo-pat"
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?
What
Authenticate the
cargo publishstep with thepandoras-boxorgFORGEJO_PATsecret (which has package-write) instead of the automatic Actions token.Why
Run #11 (dispatch of
v0.1.0after PR #3) showed the automatic Actions token authenticates but is not authorized to write packages into the org namespace:That is an authorization ceiling, not a token-spelling issue (run #7's empty-token failure was a different body,
authGroup.Verify). Org-namespace Cargo publishing needs a token whose owner has org package-write; the org already exposesFORGEJO_PATfor exactly this, andcreate-release.ymluses the same secret.Change
publish-crates.yml:CARGO_REGISTRIES_PANDORAS_BOX_CARGO_TOKEN: Bearer ${{ secrets.FORGEJO_PAT }}(wassecrets.GITHUB_TOKEN); comments updated.Bearerprefix retained.After merge
v0.1.0is tagged; I re-dispatch from main:Publishing
mcp-web 0.1.0unblocks the youtrack-mcp adoption (MCPWEB-1).#MCPWEB-2