File tree Expand file tree Collapse file tree 3 files changed +25
-10
lines changed
Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,12 @@ jobs:
3030 run :
3131 shell : bash
3232 steps :
33- - uses : actions/checkout@v4
33+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+ with :
35+ persist-credentials : false
3436
3537 - name : Set up Python ${{ matrix.python-version }}
36- uses : actions/setup-python@v4
38+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3739 with :
3840 python-version : ${{ matrix.python-version }}
3941 allow-prereleases : true
5860 run : poetry config virtualenvs.in-project true
5961
6062 - name : Set up cache
61- uses : actions/cache@v3
63+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
6264 id : cache
6365 with :
6466 path : .venv
Original file line number Diff line number Diff line change 99 name : Build
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
12+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+ with :
14+ persist-credentials : false
1315
1416 - run : pipx run build
1517
16- - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3 .3
18+ - uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4 .3
1719 with :
1820 name : distfiles
1921 path : dist/
@@ -27,16 +29,19 @@ jobs:
2729 needs : build
2830 steps :
2931 # We need to be in a git repo for gh to work.
30- - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
32+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+ with :
34+ persist-credentials : false
3135
32- - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
36+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
3337 with :
3438 name : distfiles
3539 path : dist/
3640
37- - run : gh release upload ${{ github.event.release.tag_name }} dist/*.{tar.gz,whl}
41+ - run : gh release upload "${TAG_NAME}" dist/*.{tar.gz,whl}
3842 env :
3943 GH_TOKEN : ${{ github.token }}
44+ TAG_NAME : ${{ github.event.release.tag_name }}
4045
4146 upload-pypi :
4247 name : Upload (PyPI)
@@ -48,11 +53,11 @@ jobs:
4853 id-token : write
4954 needs : build
5055 steps :
51- - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
56+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5257 with :
5358 name : distfiles
5459 path : dist/
5560
56- - uses : pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
61+ - uses : pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
5762 with :
5863 print-hash : true
Original file line number Diff line number Diff line change @@ -31,3 +31,11 @@ repos:
3131 hooks :
3232 - id : ruff
3333 - id : ruff-format
34+
35+ - repo : https://github.com/woodruffw/zizmor-pre-commit
36+ rev : v0.8.0
37+ hooks :
38+ - id : zizmor
39+ # types and files can be removed with https://github.com/woodruffw/zizmor-pre-commit/pull/2
40+ types : [yaml]
41+ files : \.github/workflows/.*$
You can’t perform that action at this time.
0 commit comments