1616 - setupext.py
1717 workflow_dispatch :
1818
19+ permissions : {}
1920
2021jobs :
2122 build_wheels :
@@ -48,18 +49,20 @@ jobs:
4849
4950 steps :
5051 - name : Checkout repo
51- uses : actions/checkout@v6
52+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
53+ with :
54+ persist-credentials : false
5255
5356 - name : Build wheels for CPython
54- 57+ uses : pypa/cibuildwheel@63fd63b352a9a8bdcc24791c9dbee952ee9a8abc # v3.3.0
5558 with :
5659 extras : uv
5760 output-dir : dist
5861 env :
5962 CIBW_ARCHS : ${{ matrix.archs }}
6063 CIBW_BUILD : ${{ matrix.select }}
6164
62- - uses : actions/upload-artifact@v5
65+ - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6366 with :
6467 name : wheels-${{ matrix.os }}-${{ matrix.id }}
6568 path : ./dist/*.whl
@@ -69,10 +72,12 @@ jobs:
6972 runs-on : ubuntu-latest
7073 steps :
7174 - name : Checkout repo
72- uses : actions/checkout@v6
75+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
76+ with :
77+ persist-credentials : false
7378
7479 - name : Set up Python
75- uses : astral-sh/setup-uv@v7
80+ uses : astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
7681 with :
7782 python-version : ' 3.10'
7883 enable-cache : false
8186 run : uv build --sdist
8287
8388 - name : Upload sdist
84- uses : actions/upload-artifact@v5
89+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
8590 with :
8691 name : sdist
8792 path : dist/*.tar.gz
9398 cp conftest.py cfg
9499
95100 - name : Upload pytest configuration files
96- uses : actions/upload-artifact@v5
101+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
97102 with :
98103 name : pytest-conf
99104 path : cfg
@@ -104,20 +109,20 @@ jobs:
104109 needs : [build_sdist]
105110 steps :
106111 - name : Download sdist
107- uses : actions/download-artifact@v6
112+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
108113 with :
109114 name : sdist
110115 path : dist
111116
112117 - name : Set up Python
113- uses : astral-sh/setup-uv@v7
118+ uses : astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
114119 with :
115120 python-version : ' 3.10'
116121 enable-cache : false
117122 activate-environment : true # allows using uv pip directly
118123
119124 - name : Download pytest configuration files
120- uses : actions/download-artifact@v6
125+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
121126 with :
122127 name : pytest-conf
123128 path : cfg
@@ -140,11 +145,12 @@ jobs:
140145 runs-on : ubuntu-latest
141146 steps :
142147 - name : Checkout repo
143- uses : actions/checkout@v6
148+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
144149 with :
145150 submodules : true
151+ persist-credentials : false
146152 - name : Set up Python
147- uses : astral-sh/setup-uv@v7
153+ uses : astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
148154 with :
149155 python-version : ' 3.13'
150156 enable-cache : false
@@ -159,20 +165,20 @@ jobs:
159165 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/yt-')
160166 steps :
161167 - name : Download sdist
162- uses : actions/download-artifact@v6
168+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
163169 with :
164170 name : sdist
165171 path : dist
166172
167173 - name : Download wheels
168- uses : actions/download-artifact@v6
174+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
169175 with :
170176 path : dist
171177 pattern : wheels-*
172178 merge-multiple : true
173179
174180 - name : Publish to PyPI
175- 181+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 # zizmor: ignore[use-trusted-publishing]
176182 with :
177183 user : __token__
178184 password : ${{ secrets.pypi_token }}
0 commit comments