Skip to content

Commit 95acdb3

Browse files
authored
Pin SHA hashes of all actions via gha-tools command (#1656)
```bash uvx gha-tools autoupdate ./.github/workflows/ --pin=all --version-strategy=specific --write ```
1 parent c58f10b commit 95acdb3

File tree

6 files changed

+45
-45
lines changed

6 files changed

+45
-45
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
# If you do not check out your code, Copilot will do this for you.
2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3030

3131
- name: "Set up Micromamba"
32-
uses: mamba-org/setup-micromamba@v2
32+
uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7
3333
with:
3434
environment-name: pytensor-test
3535
micromamba-version: "1.5.10-0"

.github/workflows/mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
run:
1313
shell: bash -leo pipefail {0}
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1616
with:
1717
persist-credentials: false
18-
- uses: mamba-org/setup-micromamba@v2
18+
- uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7
1919
with:
2020
micromamba-version: "1.5.10-0" # until https://github.com/mamba-org/setup-micromamba/issues/225 is resolved
2121
environment-file: environment.yml

.github/workflows/pypi.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
outputs:
2424
should_run: ${{ steps.set_should_run.outputs.should_run }}
2525
steps:
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2727
with:
2828
persist-credentials: false
2929
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
@@ -65,7 +65,7 @@ jobs:
6565
id-token: write
6666
attestations: write
6767
steps:
68-
- uses: actions/checkout@v5
68+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6969
with:
7070
fetch-depth: 0
7171
submodules: true
@@ -75,13 +75,13 @@ jobs:
7575
run: pipx run build --sdist
7676

7777
- name: Attest GitHub build provenance
78-
uses: actions/attest-build-provenance@v3
78+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
7979
# Don't attest from forks
8080
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
8181
with:
8282
subject-path: dist/*.tar.gz
8383

84-
- uses: actions/upload-artifact@v4
84+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8585
with:
8686
name: sdist
8787
path: dist/*.tar.gz
@@ -97,11 +97,11 @@ jobs:
9797
runs-on: ubuntu-latest
9898

9999
steps:
100-
- uses: actions/checkout@v5
100+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
101101
with:
102102
fetch-depth: 0
103103
persist-credentials: false
104-
- uses: hynek/build-and-inspect-python-package@v2
104+
- uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0
105105

106106
build_wheels:
107107
name: Build wheels for ${{ matrix.platform }}
@@ -121,22 +121,22 @@ jobs:
121121
- windows-latest
122122
- ubuntu-latest
123123
steps:
124-
- uses: actions/checkout@v5
124+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
125125
with:
126126
fetch-depth: 0
127127
persist-credentials: false
128128

129129
- name: Build wheels
130-
uses: pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
130+
uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1
131131

132132
- name: Attest GitHub build provenance
133-
uses: actions/attest-build-provenance@v3
133+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
134134
# Don't attest from forks
135135
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
136136
with:
137137
subject-path: ./wheelhouse/*.whl
138138

139-
- uses: actions/upload-artifact@v4
139+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
140140
with:
141141
name: wheels-${{ matrix.platform }}
142142
path: ./wheelhouse/*.whl
@@ -153,13 +153,13 @@ jobs:
153153
id-token: write
154154
attestations: write
155155
steps:
156-
- uses: actions/checkout@v5
156+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
157157
with:
158158
fetch-depth: 0
159159
persist-credentials: false
160160

161161
- name: Set up Python
162-
uses: actions/setup-python@v6
162+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
163163
with:
164164
python-version: '3.11'
165165

@@ -171,13 +171,13 @@ jobs:
171171
PYODIDE=1 python setup.py bdist_wheel --universal
172172
173173
- name: Attest GitHub build provenance
174-
uses: actions/attest-build-provenance@v3
174+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
175175
# Don't attest from forks
176176
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
177177
with:
178178
subject-path: dist/*.whl
179179

180-
- uses: actions/upload-artifact@v4
180+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
181181
with:
182182
name: universal_wheel
183183
path: dist/*.whl
@@ -187,19 +187,19 @@ jobs:
187187
needs: [check_changes, make_sdist, build_wheels]
188188
runs-on: ubuntu-22.04
189189
steps:
190-
- uses: actions/download-artifact@v5
190+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
191191
with:
192192
name: sdist
193193
path: dist
194194

195-
- uses: actions/download-artifact@v5
195+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
196196
with:
197197
pattern: wheels-*
198198
path: dist
199199
merge-multiple: true
200200

201201
- name: Set up Python
202-
uses: actions/setup-python@v6
202+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
203203
with:
204204
python-version: '3.11'
205205

@@ -229,21 +229,21 @@ jobs:
229229
# Don't publish from forks
230230
if: github.repository_owner == 'pymc-devs' && github.event_name == 'release' && github.event.action == 'published'
231231
steps:
232-
- uses: actions/download-artifact@v5
232+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
233233
with:
234234
name: sdist
235235
path: dist
236236

237-
- uses: actions/download-artifact@v5
237+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
238238
with:
239239
pattern: wheels-*
240240
path: dist
241241
merge-multiple: true
242242

243-
- uses: actions/download-artifact@v5
243+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
244244
with:
245245
name: universal_wheel
246246
path: dist
247247

248-
- uses: pypa/gh-action-pypi-publish@v1.12.4
248+
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
249249
# Implicitly attests that the packages were uploaded in the context of this workflow.

.github/workflows/slow-tests-issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
- name: Install ZSH
1919
run: sudo apt-get update && sudo apt-get install -y zsh
2020
- name: Checkout code
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222
- name: Set up Python
23-
uses: actions/setup-python@v6
23+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2424
with:
2525
python-version: "3.11"
2626
- name: Trigger the script

.github/workflows/test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
outputs:
2323
changes: ${{ steps.changes.outputs.src }}
2424
steps:
25-
- uses: actions/checkout@v5
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
with:
2727
fetch-depth: 0
2828
persist-credentials: false
29-
- uses: dorny/paths-filter@v3
29+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3030
id: changes
3131
with:
3232
filters: |
@@ -56,13 +56,13 @@ jobs:
5656
matrix:
5757
python-version: ["3.11", "3.13"]
5858
steps:
59-
- uses: actions/checkout@v5
59+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6060
with:
6161
persist-credentials: false
62-
- uses: actions/setup-python@v6
62+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6363
with:
6464
python-version: ${{ matrix.python-version }}
65-
- uses: pre-commit/[email protected]
65+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
6666

6767
test:
6868
name: "${{ matrix.os }} test py${{ matrix.python-version }} : fast-compile ${{ matrix.fast-compile }} : float32 ${{ matrix.float32 }} : ${{ matrix.part }}"
@@ -170,12 +170,12 @@ jobs:
170170
part: "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
171171

172172
steps:
173-
- uses: actions/checkout@v5
173+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
174174
with:
175175
fetch-depth: 0
176176
persist-credentials: false
177177
- name: Set up Python ${{ matrix.python-version }}
178-
uses: mamba-org/setup-micromamba@v2
178+
uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7
179179
with:
180180
environment-name: pytensor-test
181181
micromamba-version: "1.5.10-0" # until https://github.com/mamba-org/setup-micromamba/issues/225 is resolved
@@ -242,7 +242,7 @@ jobs:
242242
FLOAT32: ${{ matrix.float32 }}
243243

244244
- name: Upload coverage file
245-
uses: actions/upload-artifact@v4
245+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
246246
with:
247247
name: coverage-${{ steps.matrix-id.outputs.id }}
248248
path: coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml
@@ -257,12 +257,12 @@ jobs:
257257
strategy:
258258
fail-fast: false
259259
steps:
260-
- uses: actions/checkout@v5
260+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
261261
with:
262262
fetch-depth: 0
263263
persist-credentials: false
264264
- name: Set up Python 3.11
265-
uses: mamba-org/setup-micromamba@v2
265+
uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7
266266
with:
267267
environment-name: pytensor-test
268268
micromamba-version: "1.5.10-0" # until https://github.com/mamba-org/setup-micromamba/issues/225 is resolved
@@ -279,7 +279,7 @@ jobs:
279279
env:
280280
PYTHON_VERSION: 3.11
281281
- name: Download previous benchmark data
282-
uses: actions/cache@v4
282+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
283283
with:
284284
path: ./cache
285285
key: ${{ runner.os }}-benchmark
@@ -289,7 +289,7 @@ jobs:
289289
export PYTENSOR_FLAGS=mode=FAST_COMPILE,warn__ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc__cxxflags=-pipe
290290
python -m pytest --runslow --benchmark-only --benchmark-json output.json
291291
- name: Store benchmark result
292-
uses: benchmark-action/github-action-benchmark@v1
292+
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
293293
with:
294294
name: Python Benchmark with pytest-benchmark
295295
tool: "pytest"
@@ -317,12 +317,12 @@ jobs:
317317
needs: [changes, all-checks]
318318
if: ${{ needs.changes.outputs.changes == 'true' && needs.all-checks.result == 'success' }}
319319
steps:
320-
- uses: actions/checkout@v5
320+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
321321
with:
322322
persist-credentials: false
323323

324324
- name: Set up Python
325-
uses: actions/setup-python@v6
325+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
326326
with:
327327
python-version: "3.13"
328328

@@ -331,14 +331,14 @@ jobs:
331331
python -m pip install -U coverage>=5.1 coveralls
332332
333333
- name: Download coverage file
334-
uses: actions/download-artifact@v5
334+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
335335
with:
336336
pattern: coverage-*
337337
path: coverage
338338
merge-multiple: true
339339

340340
- name: Upload coverage to Codecov
341-
uses: codecov/codecov-action@v5
341+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
342342
with:
343343
directory: ./coverage/
344344
fail_ci_if_error: true

.github/workflows/zizmor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
security-events: write
1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919
with:
2020
persist-credentials: false
2121

22-
- uses: hynek/setup-cached-uv@v2
22+
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
2323

2424
- name: Run zizmor 🌈
2525
run: uvx zizmor --format sarif . > results.sarif

0 commit comments

Comments
 (0)