@@ -10,6 +10,8 @@ concurrency:
1010 group : wheels-${{ github.event.pull_request.number || github.ref }}
1111 cancel-in-progress : true
1212
13+ permissions : {}
14+
1315jobs :
1416 build_wheels :
1517 name : ${{ matrix.image }} wheels
@@ -23,24 +25,26 @@ jobs:
2325 build : " *musllinux*"
2426
2527 steps :
26- - uses : actions/checkout@v6
28+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2729 if : ${{ github.event_name != 'repository_dispatch' }}
2830 with :
2931 fetch-depth : 0 # slow, but gets all the tags
30- - uses : actions/checkout@v6
32+ persist-credentials : false
33+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3134 if : ${{ github.event_name == 'repository_dispatch' }}
3235 with :
3336 fetch-depth : 0 # slow, but gets all the tags
3437 ref : ${{ github.event.client_payload.ref }}
38+ persist-credentials : false
3539
3640 - name : ccache
37- uses : hendrikmuhs/ccache-action@v1.2
41+ uses : hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2
3842 with :
3943 key : ${{ github.job }}-${{ matrix.image }}
4044 verbose : 2
4145
4246 # Used to host cibuildwheel
43- - uses : actions/setup-python@v6
47+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
4448 with :
4549 python-version : " 3.11 - 3.14"
4650 update-environment : false
6064 CIBW_ARCHS_LINUX : auto64 # ppc64le s390x
6165 CIBW_ENVIRONMENT_LINUX : PATH=/usr/local/bin:/usr/lib/ccache:/usr/lib/ccache/bin:/usr/lib64/ccache:$PATH CCACHE_DIR=/host${{ github.workspace }}/.ccache CCACHE_CONFIGPATH=/host/home/runner/.config/ccache/ccache.conf CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime,locale,time_macros" CCACHE_NOHASHDIR="true" SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH="$(pwd)/mypy-stubs"
6266
63- - uses : actions/upload-artifact@v7
67+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
6468 with :
6569 name : artifact-${{ matrix.image }}
6670 path : ./wheelhouse/*.whl
@@ -69,20 +73,22 @@ jobs:
6973 name : Build source distribution
7074 runs-on : ubuntu-24.04
7175 steps :
72- - uses : actions/checkout@v6
76+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7377 if : ${{ github.event_name != 'repository_dispatch' }}
7478 with :
7579 fetch-depth : 0 # slow, but gets all the tags
76- - uses : actions/checkout@v6
80+ persist-credentials : false
81+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7782 if : ${{ github.event_name == 'repository_dispatch' }}
7883 with :
7984 fetch-depth : 0 # slow, but gets all the tags
8085 ref : ${{ github.event.client_payload.ref }}
86+ persist-credentials : false
8187
8288 - name : Build sdist
8389 run : pipx run build --sdist
8490
85- - uses : actions/upload-artifact@v7
91+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
8692 with :
8793 name : artifact-sdist
8894 path : dist/*.tar.gz
@@ -97,24 +103,26 @@ jobs:
97103 # macos-14+ is apple silicon
98104 os : [macos-15-intel, macos-latest]
99105 steps :
100- - uses : actions/checkout@v6
106+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
101107 if : ${{ github.event_name != 'repository_dispatch' }}
102108 with :
103109 fetch-depth : 0 # slow, but gets all the tags
104- - uses : actions/checkout@v6
110+ persist-credentials : false
111+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
105112 if : ${{ github.event_name == 'repository_dispatch' }}
106113 with :
107114 fetch-depth : 0 # slow, but gets all the tags
108115 ref : ${{ github.event.client_payload.ref }}
116+ persist-credentials : false
109117
110118 - name : ccache
111- uses : hendrikmuhs/ccache-action@v1.2
119+ uses : hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2
112120 with :
113121 key : ${{ github.job }}-${{ matrix.os }}
114122 verbose : 2
115123
116124 # Used to host cibuildwheel
117- - uses : actions/setup-python@v6
125+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
118126 with :
119127 python-version : " 3.11 - 3.14"
120128 update-environment : false
@@ -127,7 +135,7 @@ jobs:
127135 env :
128136 CIBW_ENVIRONMENT_MACOS : CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime,locale,time_macros" CCACHE_NOHASHDIR="true" PATH=/usr/local/opt/ccache/libexec:/opt/homebrew/opt/ccache/libexec:$PATH SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH="$(pwd)/mypy-stubs"
129137
130- - uses : actions/upload-artifact@v7
138+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
131139 with :
132140 name : artifact-${{ matrix.os }}-${{ strategy.job-index }}
133141 path : ./wheelhouse/*.whl
@@ -139,15 +147,17 @@ jobs:
139147 matrix :
140148 target : [ 'many', 'musl' ]
141149 steps :
142- - uses : actions/checkout@v6
150+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
143151 if : ${{ github.event_name != 'repository_dispatch' }}
144152 with :
145153 fetch-depth : 0 # slow, but gets all the tags
146- - uses : actions/checkout@v6
154+ persist-credentials : false
155+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
147156 if : ${{ github.event_name == 'repository_dispatch' }}
148157 with :
149158 fetch-depth : 0 # slow, but gets all the tags
150159 ref : ${{ github.event.client_payload.ref }}
160+ persist-credentials : false
151161
152162 - name : musllinux target
153163 if : ${{ matrix.target == 'musl' }}
@@ -160,19 +170,19 @@ jobs:
160170 echo "CIBW_BUILD=*manylinux*" >> "$GITHUB_ENV"
161171
162172 - name : ccache
163- uses : hendrikmuhs/ccache-action@v1.2
173+ uses : hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2
164174 with :
165175 key : ${{ github.job }}-${{ matrix.target }}
166176 verbose : 2
167177
168178 - name : Set up QEMU
169- uses : docker/setup-qemu-action@v4
179+ uses : docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4
170180 with :
171181 platforms : all
172182 id : qemu
173183
174184 # Used to host cibuildwheel
175- - uses : actions/setup-python@v6
185+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
176186 with :
177187 python-version : " 3.11 - 3.14"
178188 update-environment : false
@@ -186,7 +196,7 @@ jobs:
186196 CIBW_ARCHS_LINUX : riscv64
187197 CIBW_ENVIRONMENT_LINUX : PATH=/usr/local/bin:/usr/lib/ccache:/usr/lib/ccache/bin:/usr/lib64/ccache:$PATH CCACHE_DIR=/host${{ github.workspace }}/.ccache CCACHE_CONFIGPATH=/host/home/runner/.config/ccache/ccache.conf CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime,locale,time_macros" CCACHE_NOHASHDIR="true" SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH="$(pwd)/mypy-stubs"
188198
189- - uses : actions/upload-artifact@v7
199+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
190200 with :
191201 name : artifact-riscv64-${{ matrix.target }}
192202 path : ./wheelhouse/*.whl
@@ -199,14 +209,14 @@ jobs:
199209 id-token : write
200210 if : (github.event_name == 'release' && github.event.action == 'published') || (github.event_name == 'repository_dispatch' && github.event.client_payload.publish_wheel == true)
201211 steps :
202- - uses : actions/download-artifact@v8
212+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
203213 with :
204214 # unpacks default artifact into dist/
205215 pattern : artifact-*
206216 merge-multiple : true
207217 path : dist
208218 skip-decompress : false
209219
210- - uses : pypa/gh-action-pypi-publish@release/v1
220+ - uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
211221 with :
212222 skip-existing : true
0 commit comments