Skip to content

Commit a637fd2

Browse files
committed
Pin GitHub Actions to SHA hashes for supply chain security
Replace mutable version tags with full commit SHAs in all workflow files. Original tags preserved as inline comments for reference.
1 parent 9c58015 commit a637fd2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
matrix:
99
node-version: [20, 22, 24]
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1212
- name: Install Node.js ${{ matrix.node-version }}
13-
uses: actions/setup-node@v6
13+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1414
with:
1515
node-version: ${{ matrix.node-version }}
1616
- name: npm install

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
publish:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1818
with:
1919
token: ${{ secrets.GH_API_TOKEN }}
2020
- name: Setup git repo
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
git config user.name $GITHUB_ACTOR
2525
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
26-
- uses: actions/setup-node@v6
26+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2727
with:
2828
node-version: 24
2929
registry-url: "https://registry.npmjs.org"
@@ -43,19 +43,19 @@ jobs:
4343
run: |
4444
npm set //registry.npmjs.org/:_authToken ${{ secrets.NODE_AUTH_TOKEN }}
4545
npm publish
46-
- uses: actions/upload-artifact@v4
46+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4747
if: failure()
4848
with:
4949
name: npm-logs
5050
path: ~/.npm/_logs
5151
- name: Create a Release
5252
id: create-release
53-
uses: softprops/action-gh-release@v1
53+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
5454
with:
5555
tag_name: ${{ steps.push.outputs.tag-name }}
5656
generate_release_notes: true
5757
- name: Comment on PRs with link to release they are included in
58-
uses: actions/github-script@v6
58+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
5959
env:
6060
RELEASE_ID: ${{ steps.create-release.outputs.id }}
6161
with:

0 commit comments

Comments
 (0)