25
25
- reopened
26
26
- synchronize
27
27
28
+ permissions :
29
+ contents : read
30
+
28
31
jobs :
29
32
get-matrix :
30
33
name : Configure Node LTS environment matrix
33
36
outputs :
34
37
latest : ${{ steps.set-matrix.outputs.requireds }}
35
38
steps :
36
- - uses : ljharb/actions/node/matrix@main
39
+ - name : Harden the runner (Audit all outbound calls)
40
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
41
+ with :
42
+ egress-policy : audit
43
+
44
+ - uses : ljharb/actions/node/matrix@7f214d8efdbdcefc96ad9689663ef387a195deec # main
37
45
id : set-matrix
38
46
with :
39
47
versionsAsRoot : true
@@ -48,12 +56,17 @@ jobs:
48
56
runs-on : ubuntu-latest
49
57
50
58
steps :
51
- - uses : actions/checkout@v4
59
+ - name : Harden the runner (Audit all outbound calls)
60
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
61
+ with :
62
+ egress-policy : audit
63
+
64
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52
65
with :
53
66
persist-credentials : false
54
67
show-progress : false
55
68
- name : Set up Node.js LTS
56
- uses : actions/setup-node@v4
69
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
57
70
with :
58
71
cache : " npm"
59
72
check-latest : true
62
75
- run : node --run lint
63
76
- run : node --run type-check
64
77
78
+ validate-yaml :
79
+ name : Validate YAML files
80
+
81
+ if : ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
82
+
83
+ runs-on : ubuntu-latest
84
+
85
+ steps :
86
+ - name : Harden the runner (Audit all outbound calls)
87
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
88
+ with :
89
+ egress-policy : audit
90
+
91
+ - uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
92
+ - name : Validate YAML files
93
+ run : yamllint -c .yamllint.yaml -f github ./
94
+
65
95
tests :
66
96
name : Unit, e2e, coverage
67
97
@@ -80,12 +110,17 @@ jobs:
80
110
- windows-latest
81
111
82
112
steps :
83
- - uses : actions/checkout@v4
113
+ - name : Harden the runner (Audit all outbound calls)
114
+ uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
115
+ with :
116
+ egress-policy : audit
117
+
118
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
84
119
with :
85
120
persist-credentials : false
86
121
show-progress : false
87
122
- name : Set up Node.js ${{ matrix.node-version }}
88
- uses : actions/setup-node@v4
123
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
89
124
with :
90
125
cache : " npm"
91
126
check-latest : true
0 commit comments