Skip to content

Commit 4be3034

Browse files
committed
Update workflow based on zizmor audit
1 parent 366bfbb commit 4be3034

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/deploy.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
17+
with:
18+
persist-credentials: false
1719
- name: Install Node.js
18-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
1921
with:
2022
node-version: 20
2123
cache: npm
@@ -29,7 +31,7 @@ jobs:
2931
# It will still generate what it can, so it's safe to ignore the error
3032
continue-on-error: true
3133
- name: Upload artifact
32-
uses: actions/upload-pages-artifact@v3
34+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
3335
with:
3436
path: ./playground/
3537

@@ -45,4 +47,4 @@ jobs:
4547
steps:
4648
- name: Deploy to GitHub Pages
4749
id: deployment
48-
uses: actions/deploy-pages@v4
50+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e

.github/workflows/node.js.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
12+
with:
13+
persist-credentials: false
1214
- name: Install Node.js
13-
uses: actions/setup-node@v4
15+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
1416
with:
1517
node-version: 20
1618
cache: npm

0 commit comments

Comments
 (0)