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 2323 fail-fast : false
2424 steps :
2525 - uses : actions/checkout@v4
26+ with :
27+ persist-credentials : false
2628 - name : Setup Python
2729 uses : actions/setup-python@v5
2830 with :
Original file line number Diff line number Diff line change 4545 uses : actions/checkout@v4
4646 with :
4747 fetch-depth : 0
48+ persist-credentials : false
4849
4950 - name : Set up python version
5051 run : |
99100 - uses : actions/checkout@v4
100101 with :
101102 fetch-depth : 0
103+ persist-credentials : false
102104
103105 - uses : actions/setup-python@v5
104106 with :
Original file line number Diff line number Diff line change 2323
2424 steps :
2525 - uses : actions/checkout@v4
26+ with :
27+ persist-credentials : false
2628 - uses : actions/setup-python@v5
2729 -
uses :
pre-commit/[email protected] 2830 with :
3941 name : CPython ${{ matrix.python-version }}-${{ matrix.os }}
4042 steps :
4143 - uses : actions/checkout@v4
44+ with :
45+ persist-credentials : false
4246 - name : Setup Python
4347 uses : actions/setup-python@v5
4448 with :
9498 runs-on : ubuntu-latest
9599 steps :
96100 - uses : actions/checkout@v4
101+ with :
102+ persist-credentials : false
97103 - name : Setup Python
98104 uses : actions/setup-python@v5
99105 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