File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ name: Lock inactive closed issues
77on :
88 schedule :
99 - cron : ' 0 0 * * *'
10- permissions :
11- issues : write
12- pull-requests : write
13- discussions : write
10+ permissions : {}
1411concurrency :
1512 group : lock
13+ cancel-in-progress : true
1614jobs :
1715 lock :
1816 runs-on : ubuntu-latest
17+ permissions :
18+ issues : write
19+ pull-requests : write
20+ discussions : write
1921 steps :
2022 - uses : dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0
2123 with :
Original file line number Diff line number Diff line change 33 pull_request :
44 push :
55 branches : [main, stable]
6+ permissions : {}
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+ cancel-in-progress : true
610jobs :
711 main :
812 runs-on : ubuntu-latest
913 steps :
1014 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+ with :
16+ persist-credentials : false
1117 - uses : astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
1218 with :
1319 enable-cache : true
2127 path : ~/.cache/pre-commit
2228 key : pre-commit|${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }}
2329 - run : uv run --locked --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-files
24- - uses : pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
25- if : ${{ !cancelled() }}
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Publish
22on :
33 push :
44 tags : ['*']
5+ permissions : {}
6+ concurrency :
7+ group : publish-${{ github.event.push.ref }}
8+ cancel-in-progress : true
59jobs :
610 build :
711 runs-on : ubuntu-latest
1317 persist-credentials : false
1418 - uses : astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
1519 with :
16- enable-cache : true
20+ enable-cache : false
1721 prune-cache : false
1822 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1923 with :
3741 artifact-ids : ${{ needs.build.outputs.artifact-id }}
3842 path : dist/
3943 - name : create release
40- run : gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name } } dist/*
44+ run : gh release create --draft --repo ${GITHUB_REPOSITORY} ${GITHUB_REF_NAME } dist/*
4145 env :
4246 GH_TOKEN : ${{ github.token }}
4347 publish-pypi :
Original file line number Diff line number Diff line change 55 push :
66 branches : [main, stable]
77 paths-ignore : ['docs/**', 'README.md']
8+ permissions : {}
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+ cancel-in-progress : true
812jobs :
913 tests :
1014 name : ${{ matrix.name || matrix.python }}
@@ -27,18 +31,24 @@ jobs:
2731 - {name: Development Versions, python: '3.10', tox: tests-dev}
2832 steps :
2933 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+ with :
35+ persist-credentials : false
3036 - uses : astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
3137 with :
3238 enable-cache : true
3339 prune-cache : false
3440 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3541 with :
3642 python-version : ${{ matrix.python }}
37- - run : uv run --locked tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
43+ - run : uv run --locked tox run
44+ env :
45+ TOX_ENV : ${{ matrix.tox || format('py{0}', matrix.python) }}
3846 typing :
3947 runs-on : ubuntu-latest
4048 steps :
4149 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
50+ with :
51+ persist-credentials : false
4252 - uses : astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
4353 with :
4454 enable-cache : true
Original file line number Diff line number Diff line change 1+ name : GitHub Actions security analysis with zizmor
2+ on :
3+ pull_request :
4+ paths : ["**/*.yaml?"]
5+ push :
6+ branches : [main, stable]
7+ paths : ["**/*.yaml?"]
8+ permissions : {}
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+ cancel-in-progress : true
12+ jobs :
13+ zizmor :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+ with :
18+ persist-credentials : false
19+ - uses : zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0
20+ with :
21+ advanced-security : false
22+ annotations : true
You can’t perform that action at this time.
0 commit comments