ci: publish with the automatic Actions token, not a PAT #3
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MCPWEB-2-publish-uses-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?
What
Publish
mcp-webusing Forgejo's automatic Actions token instead of a manually-created PAT. The Pandora's Box org is public, so consumers resolve/download the crate anonymously; the publish step (a write) still authenticates, but viasecrets.GITHUB_TOKEN, which the job already authorizes withpermissions: packages: write.Why
Run #7 (tag
v0.1.0) failed atcargo publishwith401 authGroup.VerifybecausePANDORAS_BOX_PRIVATE_PACKAGE_PATwas never configured. Rather than add a PAT secret, use the built-in token: zero manually-managed secrets, and it is scoped to exactly this repo's package writes.Change
publish-crates.yml:CARGO_REGISTRIES_PANDORAS_BOX_CARGO_TOKEN: Bearer ${{ secrets.GITHUB_TOKEN }}(wassecrets.PANDORAS_BOX_PRIVATE_PACKAGE_PAT); header/comment updated. TheBearerprefix stays (the Forgejo Cargo registry 401s without it).After merge
v0.1.0is already tagged, so publish with:Dispatching from
mainuses this fixed workflow and publishes thev0.1.0source, unblocking the youtrack-mcp adoption (MCPWEB-1).Note
create-release.ymlstill referencessecrets.FORGEJO_PAT(for the release API + workflow dispatch on the automatedrelease/v*path). That is a separate secret and not exercised by this manual0.1.0publish; if you want that path PAT-free too, say so and I will switch it to the built-in token (it needscontents: write+actions: writejob permissions).#MCPWEB-2