File tree Expand file tree Collapse file tree 5 files changed +57
-0
lines changed Expand file tree Collapse file tree 5 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- uses : actions/checkout@v4
23
+ with :
24
+ persist-credentials : false
23
25
24
26
- uses : actions/setup-python@v5
25
27
with :
47
49
runs-on : ubuntu-latest
48
50
steps :
49
51
- uses : actions/checkout@v4
52
+ with :
53
+ persist-credentials : false
54
+
50
55
- uses : actions/setup-python@v5
51
56
with :
52
57
python-version : " 3.x"
58
+
53
59
- name : lint
54
60
run : make lint INSTALL_EXTRA=lint
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
14
+ with :
15
+ persist-credentials : false
14
16
15
17
- uses : actions/setup-python@v5
16
18
with :
Original file line number Diff line number Diff line change @@ -21,17 +21,23 @@ jobs:
21
21
22
22
steps :
23
23
- uses : actions/checkout@v4
24
+ with :
25
+ persist-credentials : false
26
+
24
27
- uses : actions/setup-python@v5
25
28
with :
26
29
# NOTE: matrix.python is intentionally not used here.
27
30
python-version : " 3.x"
31
+
28
32
- name : support deps
29
33
run : make dev INSTALL_EXTRA=support
34
+
30
35
- name : build pre-list
31
36
env :
32
37
LISTGEN_PYTHON_VERSION : " ${{ matrix.python }}"
33
38
run : |
34
39
./env/bin/python ./support/fetch-sphinx.py "${LISTGEN_PYTHON_VERSION}" > pre-list.txt
40
+
35
41
- name : upload pre-list
36
42
uses : actions/upload-artifact@v4
37
43
with :
51
57
52
58
steps :
53
59
- uses : actions/checkout@v4
60
+ with :
61
+ persist-credentials : false
54
62
55
63
- uses : actions/setup-python@v5
56
64
with :
@@ -112,6 +120,9 @@ jobs:
112
120
113
121
steps :
114
122
- uses : actions/checkout@v4
123
+ with :
124
+ persist-credentials : false
125
+
115
126
116
127
- uses : actions/setup-python@v5
117
128
with :
Original file line number Diff line number Diff line change 20
20
21
21
steps :
22
22
- uses : actions/checkout@v4
23
+ with :
24
+ persist-credentials : false
23
25
24
26
- uses : actions/setup-python@v5
25
27
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 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@v4
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