@@ -21,13 +21,18 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
23
23
steps :
24
+ - name : Harden the runner (Audit all outbound calls)
25
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
26
+ with :
27
+ egress-policy : audit
28
+
24
29
- name : Git Checkout
25
- uses : actions/checkout@v4
30
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
31
with :
27
32
fetch-depth : 2
28
33
29
34
- name : Set up Node.js
30
- uses : actions/setup-node@v4
35
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
31
36
with :
32
37
node-version-file : ' .nvmrc'
33
38
cache : npm
@@ -36,10 +41,10 @@ jobs:
36
41
run : npm ci
37
42
38
43
- name : Setup GitHub Pages
39
- uses : actions/configure-pages@v5
44
+ uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
40
45
41
46
- name : Restore Cache
42
- uses : actions/cache/restore@v4
47
+ uses : actions/cache/restore@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
43
48
with :
44
49
path : .next/cache
45
50
key : build-${{ hashFiles('**/package-lock.json') }}
@@ -50,14 +55,14 @@ jobs:
50
55
- name : Build Next.js
51
56
run : node --run build
52
57
- name : Save Cache
53
- uses : actions/cache/save@v4
58
+ uses : actions/cache/save@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
54
59
with :
55
60
path : .next/cache
56
61
key : build-${{ hashFiles('**/package-lock.json') }}
57
62
enableCrossOsArchive : true
58
63
59
64
- name : Upload Artifact
60
- uses : actions/upload-pages-artifact@v3
65
+ uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
61
66
with :
62
67
path : ./out # next.js build output
63
68
71
76
url : ${{ steps.deployment.outputs.page_url }}
72
77
73
78
steps :
79
+ - name : Harden the runner (Audit all outbound calls)
80
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
81
+ with :
82
+ egress-policy : audit
83
+
74
84
- name : Deploy to GitHub Pages
75
85
id : deployment
76
- uses : actions/deploy-pages@v4
86
+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
0 commit comments