File tree 5 files changed +53
-4
lines changed
5 files changed +53
-4
lines changed Original file line number Diff line number Diff line change 13
13
shell : bash -leo pipefail {0}
14
14
steps :
15
15
- uses : actions/checkout@v4
16
+ with :
17
+ persist-credentials : false
16
18
- uses : mamba-org/setup-micromamba@v2
17
19
with :
18
20
micromamba-version : " 1.5.10-0" # until https://github.com/mamba-org/setup-micromamba/issues/225 is resolved
Original file line number Diff line number Diff line change 26
26
with :
27
27
fetch-depth : 0
28
28
submodules : true
29
+ persist-credentials : false
29
30
30
31
- name : Build SDist
31
32
run : pipx run build --sdist
45
46
- uses : actions/checkout@v4
46
47
with :
47
48
fetch-depth : 0
49
+ persist-credentials : false
48
50
- uses : hynek/build-and-inspect-python-package@v2
49
51
50
52
build_wheels :
60
62
- uses : actions/checkout@v4
61
63
with :
62
64
fetch-depth : 0
65
+ persist-credentials : false
63
66
64
67
- name : Build wheels
65
68
76
79
- uses : actions/checkout@v4
77
80
with :
78
81
fetch-depth : 0
82
+ persist-credentials : false
79
83
80
84
- name : Set up Python
81
85
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 1
1
name : Read the Docs Pull Request Preview
2
2
on :
3
- pull_request_target :
3
+ # See <https://github.com/readthedocs/actions/issues/45>
4
+ pull_request_target : # zizmor: ignore[dangerous-triggers]
4
5
types :
5
6
- opened
6
7
7
- permissions :
8
- pull-requests : write
9
-
10
8
jobs :
11
9
documentation-links :
12
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ pull-requests : write
13
13
steps :
14
14
- uses : readthedocs/actions/preview@v1
15
15
with :
Original file line number Diff line number Diff line change 25
25
- uses : actions/checkout@v4
26
26
with :
27
27
fetch-depth : 0
28
+ persist-credentials : false
28
29
- uses : dorny/paths-filter@v3
29
30
id : changes
30
31
with :
56
57
python-version : ["3.10", "3.12"]
57
58
steps :
58
59
- uses : actions/checkout@v4
60
+ with :
61
+ persist-credentials : false
59
62
- uses : actions/setup-python@v5
60
63
with :
61
64
python-version : ${{ matrix.python-version }}
@@ -146,6 +149,7 @@ jobs:
146
149
- uses : actions/checkout@v4
147
150
with :
148
151
fetch-depth : 0
152
+ persist-credentials : false
149
153
- name : Set up Python ${{ matrix.python-version }}
150
154
uses : mamba-org/setup-micromamba@v2
151
155
with :
@@ -229,6 +233,7 @@ jobs:
229
233
- uses : actions/checkout@v4
230
234
with :
231
235
fetch-depth : 0
236
+ persist-credentials : false
232
237
- name : Set up Python 3.10
233
238
uses : mamba-org/setup-micromamba@v2
234
239
with :
@@ -286,6 +291,8 @@ jobs:
286
291
if : ${{ needs.changes.outputs.changes == 'true' && needs.all-checks.result == 'success' }}
287
292
steps :
288
293
- uses : actions/checkout@v4
294
+ with :
295
+ persist-credentials : false
289
296
290
297
- name : Set up Python
291
298
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change
1
+ # https://github.com/woodruffw/zizmor
2
+ name : zizmor GHA analysis
3
+
4
+ on :
5
+ push :
6
+ branches : ["main"]
7
+ pull_request :
8
+ branches : ["**"]
9
+
10
+ jobs :
11
+ zizmor :
12
+ name : zizmor latest via PyPI
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ security-events : write
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ persist-credentials : false
21
+
22
+ - uses : hynek/setup-cached-uv@v2
23
+
24
+ - name : Run zizmor 🌈
25
+ run : uvx zizmor --format sarif . > results.sarif
26
+ env :
27
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+
29
+ - name : Upload SARIF file
30
+ uses : github/codeql-action/upload-sarif@v3
31
+ with :
32
+ # Path to SARIF file relative to the root of the repository
33
+ sarif_file : results.sarif
34
+ # Optional category for the results
35
+ # Used to differentiate multiple results for one commit
36
+ category : zizmor
You can’t perform that action at this time.
0 commit comments