File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - cron : " 33 8 * * *"
1313 workflow_dispatch :
1414
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
1519permissions : {}
1620
1721jobs :
1822 list :
23+ name : List nox sessions
1924 runs-on : ubuntu-latest
2025 outputs :
2126 noxenvs : ${{ steps.noxenvs-matrix.outputs.noxenvs }}
2227 steps :
23- - uses : actions/checkout@v6
28+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2429 with :
2530 persist-credentials : false
2631 - name : Set up uv
3439 )
3540
3641 ci :
42+ name : CI
3743 needs : list
3844 runs-on : ${{ matrix.os }}
3945
5258 noxenv : " docs(style)"
5359
5460 steps :
55- - uses : actions/checkout@v6
61+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5662 with :
5763 persist-credentials : false
5864 submodules : " recursive"
6369 run : brew install enchant
6470 if : runner.os == 'macOS' && startsWith(matrix.noxenv, 'docs')
6571 - name : Set up Python
66- uses : actions/setup-python@v6
72+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
6773 with :
6874 python-version : |
6975 3.10
@@ -87,18 +93,19 @@ jobs:
8793 run : uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }} # zizmor: ignore[template-injection]
8894
8995 packaging :
96+ name : Packaging
9097 needs : ci
9198 runs-on : ubuntu-latest
9299 environment :
93100 name : PyPI
94101 url : https://pypi.org/p/referencing
95102
96103 permissions :
97- contents : write
98- id-token : write
104+ contents : write # for creating GitHub releases
105+ id-token : write # for PyPI trusted publishing
99106
100107 steps :
101- - uses : actions/checkout@v6
108+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
102109 with :
103110 persist-credentials : false
104111 submodules : " recursive"
Original file line number Diff line number Diff line change 66 pull_request :
77 branches : ["**"]
88
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ permissions : {}
14+
915jobs :
1016 zizmor :
1117 name : Run zizmor
1218 runs-on : ubuntu-latest
1319 permissions :
14- security-events : write
20+ security-events : write # for uploading SARIF results
1521
1622 steps :
1723 - name : Checkout repository
18- uses : actions/checkout@v6
24+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1925 with :
2026 persist-credentials : false
2127
2228 - name : Install uv
2329 uses : astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57
2430
2531 - name : Run zizmor 🌈
26- run : uvx zizmor --format=sarif .github > results.sarif
32+ run : uvx zizmor --pedantic -- format=sarif .github > results.sarif
2733
2834 env :
2935 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3036
3137 - name : Upload SARIF file
32- uses : github/codeql-action/upload-sarif@v4.35.1
38+ uses : github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
3339 with :
3440 sarif_file : results.sarif
3541 category : zizmor
You can’t perform that action at this time.
0 commit comments