File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 4242 uses : actions/checkout@v4
4343 with :
4444 ref : ${{ inputs.ref }}
45+ persist-credentials : false
4546 - name : Set up Python
4647 uses : actions/setup-python@v4
4748 with :
Original file line number Diff line number Diff line change 2222 - uses : actions/checkout@v4
2323 with :
2424 ref : ${{ inputs.ref }}
25+ persist-credentials : false
2526 - name : Set up Python
2627 uses : actions/setup-python@v4
2728 with :
Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 steps :
1010 - uses : actions/checkout@v2
11+ with :
12+ persist-credentials : false
1113 - uses : actions/setup-python@v4
1214 - name : " Run pre-commit"
1315 run : |
2325
2426 steps :
2527 - uses : actions/checkout@v3
28+ with :
29+ persist-credentials : false
2630 - name : Set up Python ${{ matrix.python-version }}
2731 uses : actions/setup-python@v4
2832 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 : ["master"]
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