Skip to content

Commit 0c0ebcf

Browse files
committed
add zizmor checs
1 parent 1f27767 commit 0c0ebcf

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/actions.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

0 commit comments

Comments
 (0)