@@ -11,12 +11,12 @@ jobs:
11
11
12
12
strategy :
13
13
matrix :
14
- node : ['16 ']
14
+ node : ['18 ']
15
15
mongodb : ['5.0']
16
16
17
17
steps :
18
18
- name : Harden GitHub Actions Runner
19
- uses : step-security/harden-runner@cdea734fa57747b9831aa9d6fcb274c5f9669557
19
+ uses : step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
20
20
with :
21
21
egress-policy : block
22
22
allowed-endpoints : >
@@ -29,12 +29,15 @@ jobs:
29
29
registry-1.docker.io:443
30
30
registry.npmjs.org:443
31
31
snyk.io:443
32
+ docker.io:443
33
+ auth.docker.io:443
34
+ production.cloudflare.docker.com:443
32
35
33
36
- name : Checkout
34
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag= v3.0.2
37
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
35
38
36
39
- name : Setup Node.js ${{ matrix.node }}
37
- uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag= v3.3 .0
40
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6 .0
38
41
with :
39
42
node-version : ${{ matrix.node }}
40
43
check-latest : true
52
55
run : npm run test:coverage
53
56
54
57
- name : Save Code Coverage
55
- uses : actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag= v3.1.0
58
+ uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
56
59
with :
57
60
name : code-coverage
58
61
path : coverage
@@ -65,20 +68,21 @@ jobs:
65
68
66
69
steps :
67
70
- name : Harden GitHub Actions Runner
68
- uses : step-security/harden-runner@cdea734fa57747b9831aa9d6fcb274c5f9669557
71
+ uses : step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
69
72
with :
70
73
egress-policy : block
71
74
allowed-endpoints : >
72
75
api.github.com:443
73
76
github.com:443
74
77
pipelines.actions.githubusercontent.com:443
75
78
sonarcloud.io:443
79
+ scanner.sonarcloud.io:443
76
80
77
81
- name : Checkout
78
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag= v3.0.2
82
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
79
83
80
84
- name : Download Code Coverage
81
- uses : actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag= v3.0.0
85
+ uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
82
86
with :
83
87
name : code-coverage
84
88
path : coverage
@@ -102,19 +106,25 @@ jobs:
102
106
103
107
steps :
104
108
- name : Harden GitHub Actions Runner
105
- uses : step-security/harden-runner@cdea734fa57747b9831aa9d6fcb274c5f9669557
109
+ uses : step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
106
110
with :
107
111
egress-policy : block
108
112
allowed-endpoints : >
109
113
github.com:443
110
114
api.github.com:443
111
115
pipelines.actions.githubusercontent.com:443
112
116
registry.npmjs.org:443
117
+ registry-1.docker.io:443
118
+ osv-vulnerabilities.storage.googleapis.com:443
119
+ nvd.nist.gov:443
113
120
pypi.org:443
114
-
121
+ location.services.mozilla.com:443
122
+ docker.io:443
123
+ auth.docker.io:443
124
+ production.cloudflare.docker.com:443
115
125
116
126
- name : Checkout
117
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag= v3.0.2
127
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
118
128
119
129
- name : Perform Scan
120
130
uses : ShiftLeftSecurity/scan-action@master
@@ -124,7 +134,7 @@ jobs:
124
134
SCAN_ANNOTATE_PR : true
125
135
126
136
- name : Save the SCAN reports
127
- uses : actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag= v3.1.0
137
+ uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
128
138
with :
129
139
name : sast-reports
130
140
path : reports
@@ -139,21 +149,24 @@ jobs:
139
149
140
150
strategy :
141
151
matrix :
142
- node : ['16 ']
152
+ node : ['18 ']
143
153
mongodb : ['5.0']
144
154
145
155
steps :
146
156
- name : Harden GitHub Actions Runner
147
- uses : step-security/harden-runner@dd5681a7d0c66fb362664d618ef4a90d656f6516
157
+ uses : step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
148
158
with :
149
159
egress-policy : block
150
160
allowed-endpoints : >
151
161
api.github.com:443
152
162
auth.docker.io:443
153
163
bit.ly:443
164
+ cfu.zaproxy.org:443
154
165
content-signature-2.cdn.mozilla.net:443
166
+ docker.io:443
155
167
firefox.settings.services.mozilla.com:443
156
168
github.com:443
169
+ location.services.mozilla.com:443
157
170
news.zaproxy.org:443
158
171
objects.githubusercontent.com:443
159
172
pipelines.actions.githubusercontent.com:443
@@ -167,10 +180,10 @@ jobs:
167
180
tracking-protection.cdn.mozilla.net:443
168
181
169
182
- name : Checkout
170
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag= v3.0.2
183
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
171
184
172
185
- name : Setup Node.js ${{ matrix.node }}
173
- uses : actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048 # tag= v3.2 .0
186
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6 .0
174
187
with :
175
188
node-version : ${{ matrix.node }}
176
189
check-latest : true
@@ -187,10 +200,11 @@ jobs:
187
200
- name : Start the app
188
201
run : npm start > /dev/null &
189
202
190
- - name : Run ZAP Scan
191
- uses : zaproxy/action-full -scan@v0.4 .0
203
+ - name : Run ZAP API Scan
204
+ uses : zaproxy/action-api -scan@6c29b04d78969bf586f2d4ea15c613d2dfb49d07 # tag= v0.2 .0
192
205
with :
193
- target : http://localhost:3000
206
+ target : http://localhost:3000/swagger/json
207
+ format : openapi
194
208
195
209
# -- PRE-RELEASE ------------------------------------------------------------
196
210
pre-release :
@@ -204,15 +218,15 @@ jobs:
204
218
205
219
steps :
206
220
- name : Harden GitHub Actions Runner
207
- uses : step-security/harden-runner@cdea734fa57747b9831aa9d6fcb274c5f9669557
221
+ uses : step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
208
222
with :
209
223
egress-policy : audit
210
224
211
225
- name : Checkout
212
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag= v3.0.2
226
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
213
227
214
228
- name : Semantic Release
215
- uses : cycjimmy/semantic-release-action@v3
229
+ uses : cycjimmy/semantic-release-action@8f6ceb9d5aae5578b1dcda6af00008235204e7fa # v3.2.0
216
230
env :
217
231
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
218
232
@@ -225,16 +239,16 @@ jobs:
225
239
226
240
steps :
227
241
- name : Harden GitHub Actions Runner
228
- uses : step-security/harden-runner@cdea734fa57747b9831aa9d6fcb274c5f9669557
242
+ uses : step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
229
243
with :
230
244
egress-policy : audit
231
245
232
246
- name : Checkout
233
- uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag= v3.0.2
247
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
234
248
235
249
- name : Docker meta
236
250
id : meta
237
- uses : docker/metadata-action@69f6fc9d46f2f8bf0d5491e4aabe0bb8c6a4678a # tag= v4.0.1
251
+ uses : docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # v4.3.0
238
252
with :
239
253
images : ${{ github.repository }}
240
254
tags : |
@@ -248,19 +262,19 @@ jobs:
248
262
type=raw,value=latest
249
263
250
264
- name : Set up QEMU
251
- uses : docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # tag=v2.0 .0
265
+ uses : docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # tag=v2.1 .0
252
266
253
267
- name : Set up Docker Buildx
254
- uses : docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # tag=v2.0.0
268
+ uses : docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # tag=v2.2.1
255
269
256
270
- name : Login to DockerHub
257
- uses : docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # tag=v2.0 .0
271
+ uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # tag=v2.1 .0
258
272
with :
259
273
username : ${{ secrets.DOCKER_USERNAME }}
260
274
password : ${{ secrets.DOCKER_PASSWORD }}
261
275
262
276
- name : Build and push
263
- uses : docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8 # tag= v3.0.0
277
+ uses : docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6 # v3.3.1
264
278
with :
265
279
context : .
266
280
push : true
0 commit comments