Skip to content

Commit c5fae5d

Browse files
committed
Pin action-gh-release to a commit and move it to 3.0.2
The release job holds the npm trusted-publishing identity and a write-scoped token, so the third-party action it runs is referenced by commit rather than by a tag that can be moved to point at different code. 3.0.0 moved the action's runtime from Node 20 to Node 24 and changed no inputs, which also clears the Node 20 deprecation warning the release run emits.
1 parent e0ef048 commit c5fae5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- run: npm ci
2222
- run: npm test
2323
- run: npm publish --provenance --access public
24-
- uses: softprops/action-gh-release@v2
24+
# Pinned to a commit rather than a tag: this job holds the npm
25+
# trusted-publishing identity and a write-scoped token, so the third-party
26+
# code it runs should not be able to change under a moved tag.
27+
- uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
2528
with:
2629
generate_release_notes: true

0 commit comments

Comments
 (0)