Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# No later step uses git with the token, so checkout does not keep it.
# This also proves, on every PR, the npm ci that release.yml runs the same way.
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: '22'
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
# This job's token can write (it creates the Release), so checkout does
# not leave it on disk for npm ci's install scripts and the build to read.
# The release action below is handed the token as an input instead.
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: actions/setup-node@v7
with:
Expand All @@ -48,6 +53,8 @@ jobs:
run: npm run verify

- name: Create GitHub Release
uses: softprops/action-gh-release@v3
# A third-party action that holds the write token, pinned to the commit
# its v3.0.3 tag points at, so a moved tag cannot change what runs here.
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
with:
generate_release_notes: true
Loading