Skip to content

Commit 7b1dac6

Browse files
authored
[CI] Pin all actions (#21759)
It's unsafe to use wide versions like v7.
1 parent c7b0546 commit 7b1dac6

21 files changed

+40
-40
lines changed

.github/workflows/email-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
[{"body" : "$COMMENT"}]
4141
EOF
4242
43-
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f #v6.0.0
43+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
4444
if: always()
4545
with:
4646
name: workflow-args

.github/workflows/pr-code-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
clangformat: 20.1.8
6060

6161
- name: Setup Python env
62-
uses: actions/setup-python@v6.2.0
62+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6363
with:
6464
python-version: '3.11'
6565
cache: 'pip'
@@ -83,7 +83,7 @@ jobs:
8383
--end-rev HEAD \
8484
--changed-files "$CHANGED_FILES"
8585
86-
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f #v6.0.0
86+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
8787
if: always()
8888
with:
8989
name: workflow-args

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5050
# format to the repository Actions tab.
5151
- name: "Upload artifact"
52-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
52+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5353
with:
5454
name: SARIF file
5555
path: results.sarif

.github/workflows/sycl-detect-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Set output
9696
id: result
97-
uses: actions/github-script@v8
97+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
9898
with:
9999
script: |
100100
if (${{steps.changed_files.outputs.changed_file_cnt}} < 500) {

.github/workflows/sycl-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
EOF
7070
# Upload the generated docs as an artifact and deploy to GitHub Pages.
7171
- name: Upload artifact
72-
uses: actions/upload-pages-artifact@v4
72+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
7373
with:
7474
path: ./install_docs
7575
- name: Deploy to GitHub Pages
7676
if: ${{ github.event_name == 'push' || inputs.update_gh_pages == 'true' }}
77-
uses: actions/deploy-pages@v4
77+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

.github/workflows/sycl-hardening-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
sudo apt install -y devscripts
2929
3030
- name: Download SYCL toolchain
31-
uses: actions/download-artifact@v7
31+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3232
with:
3333
name: ${{ inputs.sycl_linux_artifact }}
3434

@@ -47,7 +47,7 @@ jobs:
4747
hardening-check "$file" | tee -a "./hardening-check.txt"
4848
done
4949
50-
- uses: actions/upload-artifact@v6
50+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5151
with:
5252
name: hardening-check
5353
path: hardening-check.txt
@@ -63,7 +63,7 @@ jobs:
6363
unzip "windows.x64.Release.zip" -d winchecksec
6464
6565
- name: Download SYCL toolchain
66-
uses: actions/download-artifact@v7
66+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
6767
with:
6868
name: ${{ inputs.sycl_windows_artifact }}
6969

@@ -84,7 +84,7 @@ jobs:
8484
./winchecksec/build/Release/winchecksec.exe "$file" | tee -a "./winchecksec.txt"
8585
done
8686
87-
- uses: actions/upload-artifact@v6
87+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8888
with:
8989
name: winchecksec
9090
path: winchecksec.txt

.github/workflows/sycl-linux-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ jobs:
279279
run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
280280
- name: Upload toolchain release
281281
if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
282-
uses: actions/upload-artifact@v6
282+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
283283
with:
284284
name: ${{ inputs.release_toolchain_artifact }}
285285
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
@@ -302,7 +302,7 @@ jobs:
302302
run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
303303
- name: Upload toolchain
304304
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
305-
uses: actions/upload-artifact@v6
305+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
306306
with:
307307
name: ${{ inputs.toolchain_artifact }}
308308
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}

.github/workflows/sycl-linux-precommit-aws.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
checks: write
2727
statuses: write
2828
steps:
29-
- uses: actions/github-script@v8
29+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3030
with:
3131
script: |
3232
const sha = context.payload.workflow_run.head_sha
@@ -91,7 +91,7 @@ jobs:
9191
checks: write
9292
statuses: write
9393
steps:
94-
- uses: actions/github-script@v8
94+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
9595
with:
9696
script: |
9797
const sha = context.payload.workflow_run.head_sha

.github/workflows/sycl-linux-precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
8686
# download build artefact
8787
- name: Download toolchain
88-
uses: actions/download-artifact@v7
88+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
8989
with:
9090
name: sycl_linux_default
9191
- name: Extract SYCL toolchain

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ jobs:
269269
uses: ./devops/actions/setup-vulkan/linux
270270
- name: Download SYCL toolchain
271271
if: inputs.toolchain_artifact != '' && github.event_name != 'workflow_run'
272-
uses: actions/download-artifact@v7
272+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
273273
with:
274274
name: ${{ inputs.toolchain_artifact }}
275275
- name: Download SYCL toolchain [workflow_run]
276276
# NOTE: This is for `sycl-linux-precommit-aws.yml`.
277277
if: inputs.toolchain_artifact != '' && github.event_name == 'workflow_run'
278-
uses: actions/github-script@v8
278+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
279279
with:
280280
script: |
281281
const name = '${{ inputs.toolchain_artifact }}'

0 commit comments

Comments
 (0)