@@ -17,16 +17,20 @@ concurrency:
1717 group : ${{ github.workflow }}-${{ github.ref }}
1818 cancel-in-progress : true
1919
20+ permissions : {}
21+
2022jobs :
2123 lint :
2224 name : Lint
2325 runs-on : ubuntu-latest
2426 steps :
25- - uses : actions/checkout@v7
26- - uses : actions/setup-python@v6
27+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
28+ with :
29+ persist-credentials : false
30+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2731 with :
2832 python-version : " 3.x"
29- - uses : pre-commit/action@v3.0.1
33+ - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
3034
3135
3236 build_wheels :
@@ -93,25 +97,26 @@ jobs:
9397 build : " "
9498
9599 steps :
96- - uses : actions/checkout@v7
100+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
97101 with :
98102 fetch-depth : 0 # required for versioneer to find tags
103+ persist-credentials : false
99104
100- - uses : astral-sh/setup-uv@v8.2.0
105+ - uses : astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
101106 with :
102107 enable-cache : false
103108
104109 - name : Set up QEMU
105- uses : docker/setup-qemu-action@v4.1.0
110+ uses : docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
106111 if : matrix.arch == 'ppc64le' || matrix.arch == 'riscv64' || matrix.arch == 's390x'
107112
108113 - name : Build wheels
109- uses : pypa/cibuildwheel@v4.1
114+ uses : pypa/cibuildwheel@294735312765b09d24a2fbec22660ce817587d55 # v4.1.0
110115 env :
111116 CIBW_ARCHS : " ${{ matrix.arch }}"
112117 CIBW_BUILD : " cp310-${{ matrix.build }}*"
113118
114- - uses : actions/upload-artifact@v7
119+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
115120 with :
116121 name : cibw-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
117122 path : ./wheelhouse/*.whl
@@ -121,14 +126,15 @@ jobs:
121126 needs : [lint]
122127 runs-on : ubuntu-latest
123128 steps :
124- - uses : actions/checkout@v7
129+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
125130 with :
126131 fetch-depth : 0 # required for versioneer to find tags
132+ persist-credentials : false
127133
128134 - name : Build SDist
129135 run : pipx run build --sdist
130136
131- - uses : actions/upload-artifact@v7
137+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
132138 with :
133139 name : cibw-sdist
134140 path : dist/*.tar.gz
@@ -143,8 +149,10 @@ jobs:
143149 python : ["3.8", "3.13"]
144150
145151 steps :
146- - uses : actions/checkout@v7
147- - uses : astral-sh/setup-uv@v8.2.0
152+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
153+ with :
154+ persist-credentials : false
155+ - uses : astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
148156 with :
149157 enable-cache : false
150158
@@ -158,7 +166,7 @@ jobs:
158166 sudo apt-get update
159167 sudo apt-get install -y --no-install-recommends libssl-dev
160168
161- - uses : actions/download-artifact@v8
169+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
162170 with :
163171 name : cibw-sdist
164172 path : dist
@@ -183,8 +191,10 @@ jobs:
183191 os : ["ubuntu-latest", "windows-latest", "macos-latest"]
184192
185193 steps :
186- - uses : actions/checkout@v7
187- - uses : actions/setup-python@v6
194+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
195+ with :
196+ persist-credentials : false
197+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
188198 id : python
189199 with :
190200 python-version : " 3.x"
@@ -207,7 +217,9 @@ jobs:
207217 done
208218
209219 - name : Build SDist
210- run : pipx run --python '${{ steps.python.outputs.python-path }}' build --sdist
220+ run : pipx run --python "${PYTHON}" build --sdist
221+ env :
222+ PYTHON : " ${{ steps.python.outputs.python-path }}"
211223
212224 - name : Install dependencies
213225 if : runner.os == 'Linux'
@@ -234,7 +246,7 @@ jobs:
234246 needs : [build_wheels, build_sdist, test_sdist, bootstrap_build]
235247 runs-on : ubuntu-latest
236248 steps :
237- - uses : actions/download-artifact@v8
249+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
238250 with :
239251 pattern : cibw-*
240252 merge-multiple : true
@@ -254,7 +266,7 @@ jobs:
254266 id-token : write
255267 attestations : write
256268 steps :
257- - uses : actions/download-artifact@v8
269+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
258270 with :
259271 pattern : cibw-*
260272 merge-multiple : true
@@ -265,6 +277,6 @@ jobs:
265277 with :
266278 subject-path : " dist/cmake-*"
267279
268- - uses : pypa/gh-action-pypi-publish@release/v1
280+ - uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
269281 with :
270282 attestations : true
0 commit comments