File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 22
22
fail-fast : false
23
23
steps :
24
24
- uses : actions/checkout@v4
25
+ with :
26
+ persist-credentials : false
25
27
- name : Setup Python
26
28
uses : actions/setup-python@v5
27
29
with :
Original file line number Diff line number Diff line change 45
45
uses : actions/checkout@v4
46
46
with :
47
47
fetch-depth : 0
48
+ persist-credentials : false
48
49
49
50
- name : Set up python version
50
51
run : |
99
100
- uses : actions/checkout@v4
100
101
with :
101
102
fetch-depth : 0
103
+ persist-credentials : false
102
104
103
105
- uses : actions/setup-python@v5
104
106
with :
Original file line number Diff line number Diff line change 22
22
23
23
steps :
24
24
- uses : actions/checkout@v4
25
+ with :
26
+ persist-credentials : false
25
27
- uses : actions/setup-python@v5
26
28
-
uses :
pre-commit/[email protected]
27
29
with :
38
40
name : CPython ${{ matrix.python-version }}-${{ matrix.os }}
39
41
steps :
40
42
- uses : actions/checkout@v4
43
+ with :
44
+ persist-credentials : false
41
45
- name : Setup Python
42
46
uses : actions/setup-python@v5
43
47
with :
93
97
runs-on : ubuntu-latest
94
98
steps :
95
99
- uses : actions/checkout@v4
100
+ with :
101
+ persist-credentials : false
96
102
- name : Setup Python
97
103
uses : actions/setup-python@v5
98
104
with :
Original file line number Diff line number Diff line change
1
+ name : GitHub Actions Security Analysis with zizmor
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+ branches : ["**"]
8
+
9
+ jobs :
10
+ zizmor :
11
+ name : zizmor latest via Cargo
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ security-events : write
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+ with :
19
+ persist-credentials : false
20
+ - name : Setup Rust
21
+ uses : actions-rust-lang/setup-rust-toolchain@v1
22
+ - name : Get zizmor
23
+ run : cargo install zizmor
24
+ - name : Run zizmor
25
+ run : zizmor --format sarif . > results.sarif
26
+ env :
27
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ - name : Upload SARIF file
29
+ uses : github/codeql-action/upload-sarif@v3
30
+ with :
31
+ sarif_file : results.sarif
32
+ category : zizmor
You can’t perform that action at this time.
0 commit comments