File tree Expand file tree Collapse file tree 3 files changed +49
-4
lines changed Expand file tree Collapse file tree 3 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 19
19
20
20
steps :
21
21
- uses : " actions/checkout@v4"
22
+ with :
23
+ persist-credentials : false
22
24
23
25
- uses : " pdm-project/setup-pdm@v4"
24
26
with :
48
50
49
51
steps :
50
52
- uses : " actions/checkout@v4"
53
+ with :
54
+ persist-credentials : false
51
55
52
56
- uses : " actions/setup-python@v5"
53
57
with :
@@ -104,6 +108,8 @@ jobs:
104
108
105
109
steps :
106
110
- uses : " actions/checkout@v4"
111
+ with :
112
+ persist-credentials : false
107
113
- uses : " pdm-project/setup-pdm@v4"
108
114
with :
109
115
python-version : " 3.12"
Original file line number Diff line number Diff line change 10
10
- published
11
11
workflow_dispatch :
12
12
13
- permissions :
14
- contents : read
15
- id-token : write
16
-
17
13
jobs :
18
14
build-package :
19
15
name : Build & verify package
23
19
- uses : actions/checkout@v4
24
20
with :
25
21
fetch-depth : 0
22
+ persist-credentials : false
26
23
27
24
- uses : hynek/build-and-inspect-python-package@v1
28
25
33
30
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
34
31
runs-on : ubuntu-latest
35
32
needs : build-package
33
+ permissions :
34
+ id-token : write
36
35
37
36
steps :
38
37
- name : Download packages built by build-and-inspect-python-package
53
52
if : github.event.action == 'published'
54
53
runs-on : ubuntu-latest
55
54
needs : build-package
55
+ permissions :
56
+ id-token : write
56
57
57
58
steps :
58
59
- name : Download packages built by build-and-inspect-python-package
Original file line number Diff line number Diff line change
1
+ # https://github.com/woodruffw/zizmor
2
+ name : Zizmor
3
+
4
+ on :
5
+ push :
6
+ branches : ["main"]
7
+ pull_request :
8
+ branches : ["*"]
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+
14
+ jobs :
15
+ zizmor :
16
+ name : Zizmor latest via Cargo
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ security-events : write
20
+ steps :
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v4
23
+ with :
24
+ persist-credentials : false
25
+ - name : Setup Rust
26
+ uses : actions-rust-lang/setup-rust-toolchain@v1
27
+ - name : Get zizmor
28
+ run : cargo install zizmor
29
+ - name : Run zizmor
30
+ run : zizmor --format sarif . > results.sarif
31
+ - name : Upload SARIF file
32
+ uses : github/codeql-action/upload-sarif@v3
33
+ with :
34
+ # Path to SARIF file relative to the root of the repository
35
+ sarif_file : results.sarif
36
+ # Optional category for the results
37
+ # Used to differentiate multiple results for one commit
38
+ category : zizmor
You can’t perform that action at this time.
0 commit comments