66# Bazel artifacts, and can be invoked manually via the "Run workflow" button at
77# https://github.com/tensorflow/quantum/actions/workflows/ci-build-checks.yaml
88# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9+ # yamllint disable rule:line-length
910
1011name : CI build checks
1112run-name : Continuous integration build & test
@@ -178,12 +179,12 @@ jobs:
178179 debug : ${{steps.parameters.outputs.debug}}
179180 steps :
180181 - name : Check out a copy of the TFQ git repository
181- uses : actions/checkout@v4
182+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
182183
183184 # Note: setup-python has a cache facility, but we don't use it here
184185 # because we want to cache more Python things than setup-python does.
185186 - name : Set up Python ${{inputs.python_ver || env.python_ver}}
186- uses : actions/setup-python@v5
187+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
187188 with :
188189 python-version : ${{inputs.python_ver || env.python_ver}}
189190
@@ -218,7 +219,7 @@ jobs:
218219 fi
219220
220221 - name : Test if the cache already exists
221- uses : actions/cache@v4
222+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
222223 id : check_cache
223224 with :
224225 lookup-only : true
@@ -241,7 +242,7 @@ jobs:
241242 steps.check_cache.outputs.cache-hit != 'true' ||
242243 inputs.remake_python_cache == 'true'
243244 name: Set up the Python cache
244- uses: actions/cache@v4
245+ uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
245246 id: restore_cache
246247 with:
247248 key: ${{steps.parameters.outputs.python_cache_key}}
@@ -269,22 +270,22 @@ jobs:
269270 runs-on : ubuntu-22.04
270271 steps :
271272 - name : Check out a copy of the TFQ git repository
272- uses : actions/checkout@v4
273+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
273274
274275 - name : Set up Python
275- uses : actions/setup-python@v5
276+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
276277 with :
277278 python-version : ${{inputs.python_ver || env.python_ver}}
278279
279280 - name : Restore our Python cache
280- uses : actions/cache@v4
281+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
281282 with :
282283 key : ${{needs.Setup.outputs.python_cache_key}}
283284 path : ${{needs.Setup.outputs.python_cache_paths}}
284285 fail-on-cache-miss : true
285286
286287 - name : Set up Bazel
287- uses : bazel-contrib/setup-bazel@0.12.0
288+ uses : bazel-contrib/setup-bazel@c50333a3696ad2e6df1e7a2f9b417c5336db774f # 0.12.0
288289 # Note that we don't need to set the Bazel version to use, because it
289290 # knows to use what's in the .bazel-version file.
290291 with :
@@ -307,7 +308,7 @@ jobs:
307308 pip install -U ./wheel/*.whl
308309
309310 - name : Save the wheel for the tutorial tests
310- uses : actions/upload-artifact@v4
311+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
311312 with :
312313 name : wheel-${{github.run_id}}
313314 path : ./wheel
@@ -316,7 +317,7 @@ jobs:
316317
317318 - if : failure() || needs.Setup.outputs.debug == 'true'
318319 name : Make Bazel artifacts downloadable for analysis
319- uses : actions/upload-artifact@v4
320+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
320321 with :
321322 name : bazel-build-artifacts-${{github.run_id}}
322323 retention-days : 14
@@ -338,22 +339,22 @@ jobs:
338339 runs-on : ubuntu-22.04
339340 steps :
340341 - name : Check out a copy of the TFQ git repository
341- uses : actions/checkout@v4
342+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
342343
343344 - name : Set up Python
344- uses : actions/setup-python@v5
345+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
345346 with :
346347 python-version : ${{inputs.python_ver || env.python_ver}}
347348
348349 - name : Restore our Python cache
349- uses : actions/cache@v4
350+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
350351 with :
351352 key : ${{needs.Setup.outputs.python_cache_key}}
352353 path : ${{needs.Setup.outputs.python_cache_paths}}
353354 fail-on-cache-miss : true
354355
355356 - name : Get the Python wheel we built
356- uses : actions/download-artifact@v4
357+ uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
357358 with :
358359 name : wheel-${{github.run_id}}
359360 path : ./wheel
@@ -374,22 +375,22 @@ jobs:
374375 runs-on : ubuntu-22.04
375376 steps :
376377 - name : Check out a copy of the TFQ git repository
377- uses : actions/checkout@v4
378+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
378379
379380 - name : Set up Python
380- uses : actions/setup-python@v5
381+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
381382 with :
382383 python-version : ${{inputs.python_ver || env.python_ver}}
383384
384385 - name : Restore our Python cache
385- uses : actions/cache@v4
386+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
386387 with :
387388 key : ${{needs.Setup.outputs.python_cache_key}}
388389 path : ${{needs.Setup.outputs.python_cache_paths}}
389390 fail-on-cache-miss : true
390391
391392 - name : Set up Bazel
392- uses : bazel-contrib/setup-bazel@0.12.0
393+ uses : bazel-contrib/setup-bazel@c50333a3696ad2e6df1e7a2f9b417c5336db774f # 0.12.0
393394 with :
394395 bazelrc : ${{env.bazelrc_additions}}
395396 bazelisk-cache : true
@@ -407,7 +408,7 @@ jobs:
407408
408409 - if : failure() || needs.Setup.outputs.debug == 'true'
409410 name : Make Bazel artifacts downloadable for analysis
410- uses : actions/upload-artifact@v4
411+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
411412 with :
412413 name : bazel-tests-${{github.run_id}}
413414 retention-days : 7
@@ -428,22 +429,22 @@ jobs:
428429 needs : [Decision, Setup, Build_wheel]
429430 steps :
430431 - name : Check out a copy of the TFQ git repository
431- uses : actions/checkout@v4
432+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
432433
433434 - name : Set up Python
434- uses : actions/setup-python@v5
435+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
435436 with :
436437 python-version : ${{inputs.python_ver || env.python_ver}}
437438
438439 - name : Restore our Python cache
439- uses : actions/cache@v4
440+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
440441 with :
441442 key : ${{needs.Setup.outputs.python_cache_key}}
442443 path : ${{needs.Setup.outputs.python_cache_paths}}
443444 fail-on-cache-miss : true
444445
445446 - name : Get the Python wheel we built
446- uses : actions/download-artifact@v4
447+ uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
447448 with :
448449 name : wheel-${{github.run_id}}
449450 path : ./wheel
@@ -473,22 +474,22 @@ jobs:
473474 runs-on : ubuntu-22.04
474475 steps :
475476 - name : Check out a copy of the TFQ git repository
476- uses : actions/checkout@v4
477+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
477478
478479 - name : Set up Python
479- uses : actions/setup-python@v5
480+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
480481 with :
481482 python-version : ${{inputs.python_ver || env.python_ver}}
482483
483484 - name : Restore our Python cache
484- uses : actions/cache@v4
485+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
485486 with :
486487 key : ${{needs.Setup.outputs.python_cache_key}}
487488 path : ${{needs.Setup.outputs.python_cache_paths}}
488489 fail-on-cache-miss : true
489490
490491 - name : Set up Bazel
491- uses : bazel-contrib/setup-bazel@0.12.0
492+ uses : bazel-contrib/setup-bazel@c50333a3696ad2e6df1e7a2f9b417c5336db774f # 0.12.0
492493 with :
493494 bazelrc : ${{env.bazelrc_additions}}
494495 bazelisk-cache : true
0 commit comments