Skip to content

Commit f8fd15e

Browse files
committed
ci: disable credential persistence in release checkout
actions/checkout persists the workflow GITHUB_TOKEN as an http.extraheader; the release job grants it contents: read only, so semantic-release's push permission check failed with EGITNOPERMISSION before any release step ran. Without persisted credentials git operations fall back to the GH_TOKEN PAT provided via the environment, which can push tags.
1 parent fd42b53 commit f8fd15e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2424
with:
2525
ref: "master"
26+
# the job token is read-only; git push must use the GH_TOKEN PAT from env
27+
persist-credentials: false
2628
- name: 'Enable corepack'
2729
run: corepack enable
2830
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0

0 commit comments

Comments
 (0)