File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint GitHub Actions
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' .github/workflows/*.ya?ml'
7
+ pull_request :
8
+ paths :
9
+ - ' .github/workflows/*.ya?ml'
10
+
11
+ concurrency :
12
+ group : " actionlint-${{ github.ref }}"
13
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
14
+
15
+ permissions : {}
16
+
17
+ jobs :
18
+ lint :
19
+ runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : read
22
+ steps :
23
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
+ with :
25
+ persist-credentials : false
26
+
27
+ - name : lint wit zizmor
28
+ run : |
29
+ brew install zizmor
30
+ zizmor --gh-token $GITHUB_TOKEN --format sarif . > results.sarif || true
31
+
32
+ - name : Upload SARIF file
33
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
34
+ with :
35
+ name : results.sarif
36
+ path : results.sarif
37
+
38
+ upload :
39
+ needs : lint
40
+ runs-on : ubuntu-latest
41
+ permissions :
42
+ contents : read
43
+ security-events : write
44
+ steps :
45
+ - name : Download SARIF file
46
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
47
+ with :
48
+ name : results.sarif
49
+ path : results.sarif
50
+
51
+ - name : Upload SARIF file
52
+ uses : github/codeql-action/upload-sarif@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
53
+ with :
54
+ sarif_file : results.sarif
55
+ category : actions-zizmor
You can’t perform that action at this time.
0 commit comments