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 2020 runs-on : ubuntu-latest
2121 steps :
2222 - uses : actions/checkout@v4
23+ with :
24+ persist-credentials : false
2325
2426 - uses : actions/setup-python@v5
2527 with :
4749 runs-on : ubuntu-latest
4850 steps :
4951 - uses : actions/checkout@v4
52+ with :
53+ persist-credentials : false
54+
5055 - uses : actions/setup-python@v5
5156 with :
5257 python-version : " 3.x"
58+
5359 - name : lint
5460 run : make lint INSTALL_EXTRA=lint
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14+ with :
15+ persist-credentials : false
1416
1517 - uses : actions/setup-python@v5
1618 with :
Original file line number Diff line number Diff line change @@ -21,17 +21,23 @@ jobs:
2121
2222 steps :
2323 - uses : actions/checkout@v4
24+ with :
25+ persist-credentials : false
26+
2427 - uses : actions/setup-python@v5
2528 with :
2629 # NOTE: matrix.python is intentionally not used here.
2730 python-version : " 3.x"
31+
2832 - name : support deps
2933 run : make dev INSTALL_EXTRA=support
34+
3035 - name : build pre-list
3136 env :
3237 LISTGEN_PYTHON_VERSION : " ${{ matrix.python }}"
3338 run : |
3439 ./env/bin/python ./support/fetch-sphinx.py "${LISTGEN_PYTHON_VERSION}" > pre-list.txt
40+
3541 - name : upload pre-list
3642 uses : actions/upload-artifact@v4
3743 with :
5157
5258 steps :
5359 - uses : actions/checkout@v4
60+ with :
61+ persist-credentials : false
5462
5563 - uses : actions/setup-python@v5
5664 with :
@@ -112,6 +120,9 @@ jobs:
112120
113121 steps :
114122 - uses : actions/checkout@v4
123+ with :
124+ persist-credentials : false
125+
115126
116127 - uses : actions/setup-python@v5
117128 with :
Original file line number Diff line number Diff line change 2020
2121 steps :
2222 - uses : actions/checkout@v4
23+ with :
24+ persist-credentials : false
2325
2426 - uses : actions/setup-python@v5
2527 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