File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 23
23
# We must fetch at least the immediate parents so that if this is
24
24
# a pull request then we can checkout the head.
25
25
fetch-depth : 2
26
+ persist-credentials : false
26
27
27
28
# If this run was triggered by a pull request event, then checkout
28
29
# the head of the pull request instead of the merge commit.
Original file line number Diff line number Diff line change 16
16
- uses : actions/checkout@v4
17
17
with :
18
18
submodules : true
19
+ persist-credentials : false
19
20
20
21
- name : Setup .NET
21
22
uses : actions/setup-dotnet@v4
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 PyPI
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ security-events : write
15
+ # required for workflows in private repositories
16
+ contents : read
17
+ actions : read
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v4
21
+ with :
22
+ persist-credentials : false
23
+
24
+ - name : Install the latest version of uv
25
+ uses : astral-sh/setup-uv@v5
26
+
27
+ - name : Run zizmor
28
+ run : uvx zizmor --format sarif . > results.sarif
29
+ env :
30
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+
32
+ - name : Upload SARIF file
33
+ uses : github/codeql-action/upload-sarif@v3
34
+ with :
35
+ sarif_file : results.sarif
36
+ category : zizmor
You can’t perform that action at this time.
0 commit comments