fix(release): use the job token for repository calls #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/release-repo-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?
Summary
REGISTRY_TOKENcannot also carry repository scopes (the forge refuses package scopes on a token limited to repositories), so the repository calls inscripts/release.shhad no credential.Changes
scripts/release.sh: newREPO_TOKENforgit fetch, the release lookup and release creation;TOKENis used only for the registry and package calls..github/workflows/release.yml: passgithub.tokenasREPO_TOKEN;REGISTRY_TOKENneedswrite:packageonly.Verification
github.token, fetchedmain, looked up a release (404 as expected) and created then deleted a draft release: all succeeded.shellcheck -xandactionlintclean;release.shrefuses to run withPUSH=1and noREPO_TOKEN.