Pushing a Tag Fails with 403
A release job runs git push origin v1.4.0 and fails with 403. The workflow has permissions: contents: read at the top. What's the minimal fix?
git push origin v1.4.0
permissions: contents: read
Choose one answer
Add actions: write so the job can push to the repository.
actions: write
Remove the permissions block so the token gets admin rights.
permissions
Add contents: write to that job's permissions.
contents: write
Replace GITHUB_TOKEN with an admin's personal access token.
GITHUB_TOKEN