@@ -35,12 +35,12 @@ jobs:
35
35
36
36
steps :
37
37
- name : Checkout
38
- uses : actions/checkout@v4
38
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39
39
with :
40
40
fetch-depth : 0
41
41
42
42
- name : Setup .NET
43
- uses : actions/setup-dotnet@v4
43
+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
44
44
with :
45
45
global-json-file : global.json
46
46
@@ -60,15 +60,15 @@ jobs:
60
60
run : dotnet format --verify-no-changes
61
61
62
62
- name : Upload module
63
- uses : actions/upload-artifact@v4
63
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
64
64
with :
65
65
name : Module
66
66
path : ./out/modules/PSRule/*
67
67
retention-days : 3
68
68
if-no-files-found : error
69
69
70
70
- name : Upload PSRule Results
71
- uses : actions/upload-artifact@v4
71
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
72
72
if : always()
73
73
with :
74
74
name : Results-PSRule
@@ -110,10 +110,10 @@ jobs:
110
110
111
111
steps :
112
112
- name : Checkout
113
- uses : actions/checkout@v4
113
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
114
114
115
115
- name : Setup .NET
116
- uses : actions/setup-dotnet@v4
116
+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
117
117
with :
118
118
global-json-file : global.json
119
119
@@ -154,17 +154,17 @@ jobs:
154
154
contents : read
155
155
steps :
156
156
- name : Checkout
157
- uses : actions/checkout@v4
157
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
158
158
with :
159
159
fetch-depth : 0
160
160
161
161
- name : Setup node.js
162
- uses : actions/setup-node@v4
162
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
163
163
with :
164
164
node-version : 20
165
165
166
166
- name : Setup .NET
167
- uses : actions/setup-dotnet@v4
167
+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
168
168
with :
169
169
global-json-file : global.json
170
170
@@ -183,7 +183,7 @@ jobs:
183
183
npm run package -- 0.0.1
184
184
185
185
- name : Upload extension
186
- uses : actions/upload-artifact@v4
186
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
187
187
with :
188
188
name : Extension
189
189
path : out/package/vscode-ps-rule-*.vsix
@@ -207,15 +207,15 @@ jobs:
207
207
208
208
steps :
209
209
- name : Checkout
210
- uses : actions/checkout@v4
210
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
211
211
212
212
- name : Setup node.js
213
- uses : actions/setup-node@v4
213
+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
214
214
with :
215
215
node-version : 20
216
216
217
217
- name : Setup .NET
218
- uses : actions/setup-dotnet@v4
218
+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
219
219
with :
220
220
global-json-file : global.json
221
221
@@ -245,12 +245,12 @@ jobs:
245
245
246
246
steps :
247
247
- name : Checkout
248
- uses : actions/checkout@v4
248
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
249
249
with :
250
250
fetch-depth : 0
251
251
252
252
- name : Setup Python
253
- uses : actions/setup-python@v5
253
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
254
254
with :
255
255
python-version : ' 3.11'
256
256
architecture : ' x64'
@@ -277,7 +277,7 @@ jobs:
277
277
security-events : write
278
278
steps :
279
279
- name : Checkout
280
- uses : actions/checkout@v4
280
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
281
281
282
282
- name : Run PSRule analysis
283
283
@@ -289,13 +289,13 @@ jobs:
289
289
option : ps-rule-ci.yaml
290
290
291
291
- name : Upload results to security tab
292
- uses : github/codeql-action/upload-sarif@v3
292
+ uses : github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
293
293
if : always()
294
294
with :
295
295
sarif_file : reports/ps-rule-results.sarif
296
296
297
297
- name : Upload results
298
- uses : actions/upload-artifact@v4
298
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
299
299
if : always()
300
300
with :
301
301
name : PSRule-Sarif
@@ -312,21 +312,21 @@ jobs:
312
312
security-events : write
313
313
steps :
314
314
- name : Checkout
315
- uses : actions/checkout@v4
315
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
316
316
317
317
- name : Run DevSkim scanner
318
- uses : microsoft/DevSkim-Action@v1
318
+ uses : microsoft/DevSkim-Action@a6b6966a33b497cd3ae2ebc406edf8f4cc2feec6 # v1.0.15
319
319
with :
320
320
directory-to-scan : .
321
321
322
322
- name : Upload results to security tab
323
- uses : github/codeql-action/upload-sarif@v3
323
+ uses : github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
324
324
if : always()
325
325
with :
326
326
sarif_file : devskim-results.sarif
327
327
328
328
- name : Upload results
329
- uses : actions/upload-artifact@v4
329
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
330
330
if : always()
331
331
with :
332
332
name : DevSkim-Sarif
@@ -343,22 +343,22 @@ jobs:
343
343
security-events : write
344
344
steps :
345
345
- name : Checkout
346
- uses : actions/checkout@v4
346
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
347
347
348
348
- name : Initialize CodeQL
349
- uses : github/codeql-action/init@v3
349
+ uses : github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
350
350
with :
351
351
languages : ' csharp'
352
352
353
353
- name : Autobuild
354
- uses : github/codeql-action/autobuild@v3
354
+ uses : github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
355
355
356
356
- name : Perform CodeQL Analysis
357
- uses : github/codeql-action/analyze@v3
357
+ uses : github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
358
358
id : codeql-analyze
359
359
360
360
- name : Upload results
361
- uses : actions/upload-artifact@v4
361
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
362
362
if : always()
363
363
with :
364
364
name : CodeQL-Sarif
0 commit comments