Skip to content

Commit 7db9dd3

Browse files
authored
chore: pin GitHub Actions workflows (#35)
Pinning GitHub Actions to full commit SHAs reduces supply-chain risk and makes workflow runs reproducible even when floating tags move. This PR updates every workflow action to an exact SHA, keeps the corresponding released version visible inline, removes package-manager caching from the release workflow, and aligns CI with the same Node.js LTS version used for release and website jobs.
1 parent d5a00ae commit 7db9dd3

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717

1818
- name: Setup pnpm
19-
uses: pnpm/action-setup@v4
19+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
2020

2121
- name: Setup Node
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2323
with:
24-
node-version: 22
24+
node-version: 24
2525
cache: pnpm
2626

2727
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ jobs:
1414
id-token: write # required for npm provenance (OIDC)
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
fetch-depth: 0
2121

22-
- uses: pnpm/action-setup@v4
22+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
2323

24-
- uses: actions/setup-node@v4
24+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2525
with:
2626
node-version: 24
27-
cache: pnpm
2827

2928
- name: Install dependencies
3029
run: pnpm install --frozen-lockfile

.github/workflows/website.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828

2929
- name: Setup pnpm
30-
uses: pnpm/action-setup@v4
30+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
3131

3232
- name: Setup Node
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3434
with:
3535
node-version: 24
3636
cache: pnpm
3737

3838
- name: Setup Pages
3939
id: pages
40-
uses: actions/configure-pages@v5
40+
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
4141

4242
- name: Install dependencies
4343
run: pnpm install --frozen-lockfile
@@ -51,7 +51,7 @@ jobs:
5151
working-directory: ${{ env.BUILD_PATH }}
5252

5353
- name: Upload artifact
54-
uses: actions/upload-pages-artifact@v3
54+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
5555
with:
5656
path: ${{ env.BUILD_PATH }}/dist
5757

@@ -65,4 +65,4 @@ jobs:
6565
steps:
6666
- name: Deploy to GitHub Pages
6767
id: deployment
68-
uses: actions/deploy-pages@v5
68+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

0 commit comments

Comments
 (0)