Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
# The release job declares `contents: write`, which overrides this repo's
# read-only default workflow permission -- so the checkout's default
# persisted credential is WRITE-scoped and stays live in .git/config
# through `npm ci` below. A compromised dependency lifecycle script
# could read it off disk and push. semantic-release authenticates its
# own pushes from GITHUB_TOKEN, so it does not need the persisted
# credential; `persist-credentials: false` is semantic-release's own
# documented GitHub Actions recipe. (CWE-250)
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 22
Expand Down