Skip to content

Commit 633620c

Browse files
authored
chore: upgrade GitHub Actions from Node 20 to Node 24 (#2578)
1 parent c0bf4d1 commit 633620c

12 files changed

Lines changed: 301 additions & 301 deletions

File tree

.github/actions/build_ami/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runs:
5656
GITHUB_CONTEXT: ${{ toJson(github) }}
5757

5858
- name: Checkout full history
59-
uses: actions/checkout@v4
59+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6060

6161
- name: Get EIF for Release ${{ inputs.operator_release }}
6262
uses: ./.github/actions/download_release_artifact
@@ -190,7 +190,7 @@ runs:
190190
ls -al
191191
192192
- name: Upload artifacts
193-
uses: actions/upload-artifact@v4
193+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
194194
with:
195195
name: ${{ inputs.identity_scope }}_AMI_measurement
196196
path: ./scripts/aws/uid2-operator-ami/${{ inputs.identity_scope }}_AMI_measurement.txt

.github/actions/build_aws_eif/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131

3232
steps:
3333
- name: Checkout full history at commit sha ${{ inputs.commit_sha }}
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3535
with:
3636
ref: ${{ inputs.commit_sha }}
3737
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout.

.github/actions/build_eks_docker_image/action.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939

4040
steps:
4141
- name: Checkout repo
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4343

4444
- name: Make output dir
4545
shell: bash
@@ -112,22 +112,22 @@ runs:
112112
df -h
113113
114114
- name: Log in to the Docker container registry
115-
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
115+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
116116
with:
117117
registry: ${{ env.REGISTRY }}
118118
username: ${{ github.actor }}
119119
password: ${{ inputs.github_token }}
120120

121121
- name: Extract metadata (tags, labels) for Docker
122122
id: meta
123-
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
123+
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
124124
with:
125125
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-eks-${{ inputs.identity_scope }}
126126
tags: |
127127
type=raw,value=${{ steps.versionNumber.outputs.VERSION_NUMBER }}.${{ github.run_number }}
128128
129129
- name: Build and export to Docker
130-
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
130+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
131131
with:
132132
context: ${{ inputs.artifacts_output_dir }}
133133
load: true
@@ -140,7 +140,7 @@ runs:
140140
141141
- name: Push to Docker
142142
id: push-to-docker
143-
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
143+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
144144
with:
145145
context: ${{ inputs.artifacts_output_dir }}
146146
push: true

.github/actions/download_release_artifact/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
steps:
2828
- name: Get Artifact Ids
2929
id: get_asset_id
30-
uses: actions/github-script@v7
30+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3131
with:
3232
github-token: ${{ inputs.github_token }}
3333
result-encoding: string

.github/actions/update_operator_version/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ runs:
6565
IS_RELEASE: ${{ steps.checkRelease.outputs.is_release }}
6666

6767
- name: Checkout full history on Main
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6969
if: ${{ inputs.version_number_input == '' }}
7070
with:
7171
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout.
7272
fetch-depth: 0
7373

7474
- name: Checkout full history at tag v${{ inputs.version_number_input }}
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
7676
if: ${{ inputs.version_number_input != '' }}
7777
with:
7878
ref: v${{ inputs.version_number_input }}

.github/workflows/build-uid2-ami.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
enclave_id: ${{ steps.buildAMI.outputs.enclave_id }}
3939
steps:
4040
- name: Checkout repo
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4242

4343
- name: Build UID2 Operator AMI
4444
id: buildAMI
@@ -78,7 +78,7 @@ jobs:
7878
enclave_id: ${{ steps.buildAMI.outputs.enclave_id }}
7979
steps:
8080
- name: Checkout repo
81-
uses: actions/checkout@v4
81+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
8282

8383
- name: Pre-cleanup
8484
shell: bash
@@ -123,26 +123,26 @@ jobs:
123123
needs: [buildUID2, testUID2Ami, testEUIDAmi]
124124
steps:
125125
- name: Download UID2 artifacts
126-
uses: actions/download-artifact@v4
126+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
127127
with:
128128
name: uid2_AMI_measurement
129129
path: ./artifacts
130130

131131
- name: Download EUID artifacts
132-
uses: actions/download-artifact@v4
132+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
133133
with:
134134
name: euid_AMI_measurement
135135
path: ./artifacts
136136

137137
- name: Delete staging artifacts
138-
uses: geekyeggo/delete-artifact@b54d29a59e55046d1f7fc8226cdda507e6b9cf62 # v5
138+
uses: geekyeggo/delete-artifact@176a747ab7e287e3ff4787bf8a148716375ca118 # v6.0.0
139139
with:
140140
name: |
141141
uid2_AMI_measurement
142142
euid_AMI_measurement
143143
144144
- name: Upload artifacts
145-
uses: actions/upload-artifact@v4
145+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
146146
with:
147147
name: aws-ami-ids-${{ needs.buildUID2.outputs.version_number }}
148148
path: ./artifacts/

.github/workflows/publish-all-operators.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
release_type: ${{ inputs.release_type }}
6565

6666
- name: Checkout repo
67-
uses: actions/checkout@v4
67+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6868
with:
6969
fetch-depth: 0
7070

@@ -155,61 +155,61 @@ jobs:
155155
needs: [start, buildPublic, buildGCP, buildAzure, buildAWS, buildAMI]
156156
steps:
157157
- name: Checkout repo
158-
uses: actions/checkout@v4
158+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
159159
with:
160160
fetch-depth: 0
161161

162162
- name: Download public manifest
163-
uses: actions/download-artifact@v4
163+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
164164
with:
165165
pattern: public-image-*
166166
path: ./manifests/public_operator
167167

168168
- name: Download GCP manifest
169-
uses: actions/download-artifact@v4
169+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
170170
with:
171171
pattern: gcp-oidc-enclave-ids-*
172172
path: ./manifests/gcp_oidc_operator
173173

174174
- name: Download Azure CC manifest
175-
uses: actions/download-artifact@v4
175+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
176176
with:
177177
pattern: azure-cc-enclave-id-*
178178
path: ./manifests/azure_cc_operator
179179

180180
- name: Download Azure AKS manifest
181-
uses: actions/download-artifact@v4
181+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
182182
with:
183183
pattern: azure-aks-enclave-id-*
184184
path: ./manifests/azure_aks_operator
185185

186186
- name: Download EIF manifest
187-
uses: actions/download-artifact@v4
187+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
188188
with:
189189
pattern: 'aws-eif-enclave-ids-*'
190190
path: ./manifests/aws_eif
191191

192192
- name: Download AWS AMI manifest
193-
uses: actions/download-artifact@v4
193+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
194194
with:
195195
pattern: 'aws-ami-ids-*'
196196
path: ./manifests/aws_ami
197197

198198
- name: Download Deployment Files
199-
uses: actions/download-artifact@v4
199+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
200200
with:
201201
pattern: '*-deployment-files-*'
202202
path: ./deployment
203203

204204
- name: Upload artifacts
205-
uses: actions/upload-artifact@v4
205+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
206206
with:
207207
name: uid2-operator-release-${{ needs.start.outputs.new_version }}-manifests
208208
path: ./manifests
209209

210210
- name: Build changelog
211211
id: changelog
212-
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
212+
uses: mikepenz/release-changelog-builder-action@348e88fab4c37338b1e803ceb2d4a7a5db6c0833 # v6.2.2
213213
with:
214214
toTag: v${{ needs.start.outputs.new_version }}
215215
configurationJson: |
@@ -230,7 +230,7 @@ jobs:
230230
(cd manifests && zip -r ../uid2-operator-release-manifests-${{ needs.start.outputs.new_version }}.zip .)
231231
232232
- name: Create draft release
233-
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
233+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
234234
with:
235235
name: v${{ needs.start.outputs.new_version }}
236236
body: ${{ steps.changelog.outputs.changelog }}

.github/workflows/publish-aws-eks-nitro-enclave-docker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
packages: write
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4141

4242
- name: Build Docker Image for EKS Pod
4343
id: build_docker_image_uid
@@ -65,7 +65,7 @@ jobs:
6565
packages: write
6666
steps:
6767
- name: Checkout
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6969

7070
- name: Build Docker Image for EKS Pod
7171
id: build_docker_image_euid
@@ -128,7 +128,7 @@ jobs:
128128
echo "Enclave ID (maybe shared by other images): " ${{ needs.buildEUIDImage.outputs.enclave_id }} >> ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests/aws-eks-euid-enclave-id-${{ needs.buildEUIDImage.outputs.image_tag }}.txt
129129
130130
- name: Save Manifests as build artifacts
131-
uses: actions/upload-artifact@v4
131+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
132132
with:
133133
name: aws-eks-enclave-ids-${{ needs.buildUID2Image.outputs.image_tag }}
134134
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests

.github/workflows/publish-aws-nitro-eif.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
GITHUB_CONTEXT: ${{ toJson(github) }}
5151

5252
- name: Checkout
53-
uses: actions/checkout@v4
53+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
5454

5555
- name: Update Operator Version
5656
id: update_version
@@ -74,7 +74,7 @@ jobs:
7474
needs: start
7575
steps:
7676
- name: Checkout
77-
uses: actions/checkout@v4
77+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
7878

7979
- name: Build UID2 AWS EIF
8080
id: build_uid2_eif
@@ -93,7 +93,7 @@ jobs:
9393
df -h
9494
9595
- name: Save UID2 eif artifact
96-
uses: actions/upload-artifact@v4
96+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9797
with:
9898
name: aws-uid2-deployment-files-${{ needs.start.outputs.new_version }}
9999
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/uid2
@@ -113,7 +113,7 @@ jobs:
113113
needs: start
114114
steps:
115115
- name: Checkout
116-
uses: actions/checkout@v4
116+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
117117

118118
- name: Build EUID AWS EIF
119119
id: build_euid_eif
@@ -132,7 +132,7 @@ jobs:
132132
df -h
133133
134134
- name: Save EUID eif artifact
135-
uses: actions/upload-artifact@v4
135+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
136136
with:
137137
name: aws-euid-deployment-files-${{ needs.start.outputs.new_version }}
138138
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/euid
@@ -157,12 +157,12 @@ jobs:
157157
df -h
158158
159159
- name: Download UID2 artifacts
160-
uses: actions/download-artifact@v4
160+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
161161
with:
162162
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/uid2
163163

164164
- name: Download EUID artifacts
165-
uses: actions/download-artifact@v4
165+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
166166
with:
167167
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/euid
168168

@@ -173,7 +173,7 @@ jobs:
173173
echo ${{ needs.buildEUIDEIF.outputs.euid_enclave_id }} >> ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests/aws-euid-enclave-id-${{ needs.start.outputs.new_version }}.txt
174174
175175
- name: Save Manifests as build artifacts
176-
uses: actions/upload-artifact@v4
176+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
177177
with:
178178
name: aws-eif-enclave-ids-${{ needs.start.outputs.new_version }}
179179
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests
@@ -182,7 +182,7 @@ jobs:
182182
- name: Build changelog
183183
id: github_release
184184
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
185-
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
185+
uses: mikepenz/release-changelog-builder-action@348e88fab4c37338b1e803ceb2d4a7a5db6c0833 # v6.2.2
186186
with:
187187
configurationJson: |
188188
{
@@ -194,7 +194,7 @@ jobs:
194194

195195
- name: Create release
196196
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
197-
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
197+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
198198
with:
199199
name: ${{ needs.start.outputs.new_version }}
200200
body: ${{ steps.github_release.outputs.changelog }}

0 commit comments

Comments
 (0)