File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -2,47 +2,60 @@ name: Validate, build and deploy
2
2
3
3
on : [push, pull_request]
4
4
5
+ # Disable all permissions by default, requiring explicit permission definitions for all jobs.
6
+ permissions : {}
7
+
5
8
jobs :
6
9
check :
7
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
8
13
steps :
9
- - uses : actions/checkout@v4
10
- - uses : actions/setup-node@v4
14
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15
+ with :
16
+ persist-credentials : false
17
+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
11
18
with :
12
- node-version : 20
19
+ node-version : 22
13
20
cache : npm
14
21
- run : npm ci
15
22
- run : npm run lint
16
23
- run : npm run typecheck
17
24
- run : npm run validate
25
+
18
26
build :
19
27
if : github.ref == 'refs/heads/main'
20
28
needs : check
21
29
runs-on : ubuntu-latest
30
+ permissions :
31
+ contents : read
22
32
steps :
23
- - uses : actions/checkout@v4
24
- - uses : actions/setup-node@v4
33
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25
34
with :
26
- node-version : 20
35
+ persist-credentials : false
36
+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
37
+ with :
38
+ node-version : 22
27
39
cache : npm
28
40
- run : npm ci
29
41
- run : |
30
42
mkdir pages
31
43
npm -s run collect > pages/eol-rules.json
32
- - uses : actions/upload-pages-artifact@v3
44
+ - uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
33
45
with :
34
46
path : pages
47
+
35
48
deploy :
36
49
if : github.ref == 'refs/heads/main'
37
50
needs : build
51
+ runs-on : ubuntu-latest
38
52
permissions :
39
53
pages : write
40
54
id-token : write
41
55
environment :
42
56
name : github-pages
43
57
url : ${{ steps.deployment.outputs.page_url }}
44
- runs-on : ubuntu-latest
45
58
steps :
46
59
- name : Deploy to GitHub Pages
47
60
id : deployment
48
- uses : actions/deploy-pages@v4
61
+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
You can’t perform that action at this time.
0 commit comments