Skip to content

Commit 65cb453

Browse files
authored
fix: pin all third-party actions (#527)
Likelihood of a compromise of one of these actions seems unlikely, but it's easy enough to pin them and to have `renovate` take care of the upgrades. Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - Mike Sarahan (https://github.com/msarahan) URL: #527
1 parent 8d258cf commit 65cb453

14 files changed

Lines changed: 26 additions & 26 deletions

.github/workflows/build-in-devcontainer.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
runs-on: "linux-${{ matrix.ARCH }}-${{ inputs.node_type }}"
100100
name: "${{ matrix.ARCH }}, ${{ matrix.CUDA_VER }}, ${{ matrix.PACKAGER }}"
101101
steps:
102-
- uses: actions/checkout@v6
102+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
103103
with:
104104
repository: ${{ inputs.repo }}
105105
ref: ${{ inputs.sha }}
@@ -146,7 +146,7 @@ jobs:
146146
role-duration-seconds: 43200 # 12h
147147

148148
- name: Setup Node.js
149-
uses: actions/setup-node@v6
149+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
150150
with:
151151
node-version: '24'
152152

@@ -211,7 +211,7 @@ jobs:
211211
212212
- if: ${{ !cancelled() }}
213213
name: Upload sccache logs
214-
uses: actions/upload-artifact@v7
214+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
215215
with:
216216
name: sccache-client-logs-${{ env.BUILD_SLUG }}-${{ env.ARTIFACT_SLUG }}
217217
path: repo/sccache*.log

.github/workflows/changed-files.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
env:
6565
GH_TOKEN: ${{ github.token }}
6666
- name: Checkout code repo
67-
uses: actions/checkout@v6
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6868
with:
6969
persist-credentials: true
7070
- name: Calculate changed files

.github/workflows/checks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656
steps:
5757
- name: Checkout code
58-
uses: actions/checkout@v6
58+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5959
with:
6060
persist-credentials: true
6161
- name: Telemetry setup
@@ -97,7 +97,7 @@ jobs:
9797
VERSION_FILES_CHANGED: ${{ (inputs.enable_check_version_files_changed && fromJSON(steps.changed-files.outputs.changed_file_groups).version_files) || 'false' }}
9898
- name: Fetch tags
9999
if: ${{ inputs.enable_check_version_against_tag }}
100-
uses: actions/checkout@v6
100+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
101101
with:
102102
persist-credentials: false
103103
fetch-depth: 0 # https://github.com/actions/checkout/issues/1471
@@ -126,7 +126,7 @@ jobs:
126126
image: rapidsai/ci-conda:26.06-cuda13.1.1-ubuntu24.04-py3.12 # zizmor: ignore[unpinned-images]
127127
steps:
128128
- name: Checkout code
129-
uses: actions/checkout@v6
129+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
130130
with:
131131
fetch-depth: 0
132132
persist-credentials: true
@@ -139,7 +139,7 @@ jobs:
139139
- name: Get PR Info
140140
id: get-pr-info
141141
uses: nv-gha-runners/get-pr-info@main
142-
- uses: actions/cache@v5
142+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
143143
with:
144144
path: ~/.cache/pre-commit
145145
key: pre-commit-0|${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/conda-cpp-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
108108
aws-region: ${{ vars.AWS_REGION }}
109109
role-duration-seconds: 43200 # 12h
110-
- uses: actions/checkout@v6
110+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
111111
with:
112112
repository: ${{ inputs.repo }}
113113
ref: ${{ inputs.sha }}
@@ -190,7 +190,7 @@ jobs:
190190
run: |
191191
echo "Contents of directory to be uploaded:"
192192
ls -R "${CONDA_OUTPUT_DIR}"
193-
- uses: actions/upload-artifact@v7
193+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
194194
if: ${{ inputs.upload-artifacts }}
195195
with:
196196
if-no-files-found: 'error'

.github/workflows/conda-cpp-post-build-checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
6060
aws-region: ${{ vars.AWS_REGION }}
6161
role-duration-seconds: 43200 # 12h
62-
- uses: actions/checkout@v6
62+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6363
with:
6464
repository: ${{ inputs.repo }}
6565
ref: ${{ inputs.sha }}
@@ -103,7 +103,7 @@ jobs:
103103
EXTRACTED_DIR=$(rapids-extract-conda-files "${CPP_DIR}")
104104
echo "RAPIDS_EXTRACTED_DIR=${EXTRACTED_DIR}" >> "${GITHUB_ENV}"
105105
- name: Get weak detection tool
106-
uses: actions/checkout@v6
106+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
107107
with:
108108
repository: rapidsai/detect-weak-linking
109109
ref: refs/heads/main

.github/workflows/conda-cpp-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
aws-region: ${{ vars.AWS_REGION }}
150150
role-duration-seconds: 43200 # 12h
151151

152-
- uses: actions/checkout@v6
152+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
153153
with:
154154
repository: ${{ inputs.repo }}
155155
ref: ${{ inputs.sha }}

.github/workflows/conda-python-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
117117
aws-region: ${{ vars.AWS_REGION }}
118118
role-duration-seconds: 43200 # 12h
119-
- uses: actions/checkout@v6
119+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
120120
with:
121121
repository: ${{ inputs.repo }}
122122
ref: ${{ inputs.sha }}
@@ -209,7 +209,7 @@ jobs:
209209
run: |
210210
echo "Contents of directory to be uploaded:"
211211
ls -R "${CONDA_OUTPUT_DIR}"
212-
- uses: actions/upload-artifact@v7
212+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
213213
if: ${{ inputs.upload-artifacts }}
214214
with:
215215
if-no-files-found: 'error'

.github/workflows/conda-python-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
aws-region: ${{ vars.AWS_REGION }}
154154
role-duration-seconds: 43200 # 12h
155155

156-
- uses: actions/checkout@v6
156+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
157157
with:
158158
repository: ${{ inputs.repo }}
159159
ref: ${{ inputs.sha }}

.github/workflows/conda-upload-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
7070
env:
7171
GH_TOKEN: ${{ github.token }}
72-
- uses: actions/checkout@v6
72+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7373
with:
7474
repository: ${{ inputs.repo }}
7575
ref: ${{ inputs.sha }}

.github/workflows/custom-job.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
138138
aws-region: ${{ vars.AWS_REGION }}
139139
role-duration-seconds: 43200 # 12h
140-
- uses: actions/checkout@v6
140+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
141141
with:
142142
repository: ${{ inputs.repo }}
143143
ref: ${{ inputs.sha }}
@@ -192,7 +192,7 @@ jobs:
192192
GH_TOKEN: ${{ inputs.alternative-gh-token-secret-name && secrets[inputs.alternative-gh-token-secret-name] || github.token }} # zizmor: ignore[overprovisioned-secrets]
193193
- name: Get RAPIDS License Builder
194194
if: ${{ inputs.requires_license_builder }}
195-
uses: actions/checkout@v6
195+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
196196
with:
197197
repository: "rapidsai/spdx-license-builder"
198198
ref: "refs/heads/main"
@@ -208,7 +208,7 @@ jobs:
208208
GH_TOKEN: ${{ inputs.alternative-gh-token-secret-name && secrets[inputs.alternative-gh-token-secret-name] || github.token }} # zizmor: ignore[overprovisioned-secrets]
209209
INPUTS_SCRIPT: ${{ inputs.script }}
210210
- name: Upload file to GitHub Artifact
211-
uses: actions/upload-artifact@v7
211+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
212212
with:
213213
name: ${{ inputs.artifact-name }}
214214
path: ${{ inputs.file_to_upload }}

0 commit comments

Comments
 (0)