Skip to content

Commit 8c70845

Browse files
authored
Upgrade GitHub Actions to latest major versions to avoid Node 20 deprecation (#863)
### Summary & Motivation Upgrade all GitHub Actions to their latest major versions ahead of the Node.js 20 deprecation deadline on June 2nd, 2026. GitHub will force JavaScript actions to run with Node.js 24 by default after that date. - `actions/checkout` v4 → v6, `actions/setup-node` v4 → v6, `actions/setup-dotnet` v4 → v5, `actions/setup-java` v4 → v5 - `actions/upload-artifact` v4 → v7, `actions/download-artifact` v4 → v8, `actions/github-script` v7 → v8 - `azure/login` v2 → v3, `docker/setup-buildx-action` v3 → v4 ### Checklist - [x] I have added tests, or done manual regression tests - [x] I have updated the documentation, if necessary
2 parents fdd1154 + b49fbeb commit 8c70845

File tree

8 files changed

+55
-55
lines changed

8 files changed

+55
-55
lines changed

.github/workflows/_deploy-container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ jobs:
4949

5050
steps:
5151
- name: Checkout Code
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6
5353

5454
- name: Download Artifacts
55-
uses: actions/download-artifact@v4
55+
uses: actions/download-artifact@v8
5656
with:
5757
name: ${{ inputs.artifacts_name }}
5858
path: ${{ inputs.artifacts_path }}
5959

6060
- name: Login to Azure
61-
uses: azure/login@v2
61+
uses: azure/login@v3
6262
with:
6363
client-id: ${{ env.SERVICE_PRINCIPAL_ID }}
6464
tenant-id: ${{ env.TENANT_ID }}
@@ -83,7 +83,7 @@ jobs:
8383
# For staging, build and push the image
8484
- name: Setup Docker Buildx
8585
if: inputs.azure_environment == 'stage'
86-
uses: docker/setup-buildx-action@v3
86+
uses: docker/setup-buildx-action@v4
8787

8888
- name: Build and Push Container Image
8989
if: inputs.azure_environment == 'stage'

.github/workflows/_deploy-infrastructure.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
fi
5858
echo "should_deploy=$should_deploy" >> $GITHUB_OUTPUT
5959
- name: Checkout Code
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v6
6161

6262
- name: Install Bicep CLI
6363
run: |
@@ -67,7 +67,7 @@ jobs:
6767
bicep --version
6868
6969
- name: Login to Azure
70-
uses: azure/login@v2
70+
uses: azure/login@v3
7171
with:
7272
client-id: ${{ inputs.service_principal_id }}
7373
tenant-id: ${{ inputs.tenant_id }}
@@ -122,7 +122,7 @@ jobs:
122122

123123
steps:
124124
- name: Checkout Code
125-
uses: actions/checkout@v4
125+
uses: actions/checkout@v6
126126

127127
- name: Install Bicep CLI
128128
run: |
@@ -132,7 +132,7 @@ jobs:
132132
bicep --version
133133
134134
- name: Login to Azure
135-
uses: azure/login@v2
135+
uses: azure/login@v3
136136
with:
137137
client-id: ${{ inputs.service_principal_id }}
138138
tenant-id: ${{ inputs.tenant_id }}
@@ -152,7 +152,7 @@ jobs:
152152
run: bash ./cloud-infrastructure/cluster/deploy-cluster.sh ${{ inputs.unique_prefix }} ${{ inputs.azure_environment }} ${{ inputs.cluster_location }} ${{ inputs.cluster_location_acronym }} ${{ inputs.postgres_admin_object_id }} ${{ inputs.domain_name }} --apply
153153

154154
- name: Refresh Azure Tokens # The previous step may take a while, so we refresh the token to avoid timeouts
155-
uses: azure/login@v2
155+
uses: azure/login@v3
156156
with:
157157
client-id: ${{ inputs.service_principal_id }}
158158
tenant-id: ${{ inputs.tenant_id }}

.github/workflows/_migrate-database.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757

5858
steps:
5959
- name: Checkout Code
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v6
6161

6262
- name: Setup .NET Core SDK
63-
uses: actions/setup-dotnet@v4
63+
uses: actions/setup-dotnet@v5
6464
with:
6565
global-json-file: application/global.json
6666

@@ -73,7 +73,7 @@ jobs:
7373
run: dotnet build ${{ inputs.relative_startup_project }}
7474

7575
- name: Login to Azure
76-
uses: azure/login@v2
76+
uses: azure/login@v3
7777
with:
7878
client-id: ${{ inputs.service_principal_id }}
7979
tenant-id: ${{ env.TENANT_ID }}
@@ -150,15 +150,15 @@ jobs:
150150

151151
- name: Upload Migration Script
152152
if: steps.generate-migration-script.outputs.has_migrations_to_apply == 'true'
153-
uses: actions/upload-artifact@v4
153+
uses: actions/upload-artifact@v7
154154
with:
155155
name: migration-script-${{ inputs.azure_environment }}-${{ inputs.cluster_location_acronym }}
156156
path: application/migration.sql
157157

158158
- name: Generate Migration Information
159159
id: migration-info
160160
if: steps.generate-migration-script.outputs.has_migrations_to_apply == 'true'
161-
uses: actions/github-script@v7
161+
uses: actions/github-script@v8
162162
env:
163163
MIGRATION_JSON: ${{ steps.generate-migration-script.outputs.migration_json }}
164164
MIGRATION_SCRIPT: ${{ steps.generate-migration-script.outputs.migration_script }}
@@ -185,7 +185,7 @@ jobs:
185185
186186
- name: Add Migration Information to Pull Request
187187
if: github.event_name == 'pull_request' && steps.generate-migration-script.outputs.has_migrations_to_apply == 'true'
188-
uses: actions/github-script@v7
188+
uses: actions/github-script@v8
189189
env:
190190
MIGRATION_INFO: ${{ steps.migration-info.outputs.markdown }}
191191
with:
@@ -221,7 +221,7 @@ jobs:
221221
222222
- name: Add Migration Information to Summary
223223
if: steps.generate-migration-script.outputs.has_migrations_to_apply == 'true' && inputs.azure_environment == 'prod'
224-
uses: actions/github-script@v7
224+
uses: actions/github-script@v8
225225
env:
226226
MIGRATION_INFO: ${{ steps.migration-info.outputs.markdown }}
227227
with:
@@ -245,17 +245,17 @@ jobs:
245245

246246
steps:
247247
- name: Checkout Code
248-
uses: actions/checkout@v4
248+
uses: actions/checkout@v6
249249

250250
- name: Login to Azure
251-
uses: azure/login@v2
251+
uses: azure/login@v3
252252
with:
253253
client-id: ${{ inputs.service_principal_id }}
254254
tenant-id: ${{ env.TENANT_ID }}
255255
subscription-id: ${{ inputs.subscription_id }}
256256

257257
- name: Download Migration Script
258-
uses: actions/download-artifact@v4
258+
uses: actions/download-artifact@v8
259259
with:
260260
name: migration-script-${{ inputs.azure_environment }}-${{ inputs.cluster_location_acronym }}
261261
path: .
@@ -280,7 +280,7 @@ jobs:
280280
echo "Migrations applied successfully!"
281281
282282
- name: Display Migration Summary
283-
uses: actions/github-script@v7
283+
uses: actions/github-script@v8
284284
with:
285285
script: core.summary.addRaw(`✅ Migrations successfully applied to \`${{ inputs.database_name }}\` database on \`${{ inputs.azure_environment }}\`.`).write();
286286

.github/workflows/account.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
steps:
4545
- name: Checkout Code
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v6
4747

4848
- name: Generate Version
4949
id: generate_version
@@ -64,7 +64,7 @@ jobs:
6464
echo "deploy_production=$deploy_production" >> $GITHUB_OUTPUT
6565
6666
- name: Setup Node.js Environment
67-
uses: actions/setup-node@v4
67+
uses: actions/setup-node@v6
6868
with:
6969
node-version: 24
7070

@@ -73,7 +73,7 @@ jobs:
7373
run: npm ci
7474

7575
- name: Setup .NET Core SDK
76-
uses: actions/setup-dotnet@v4
76+
uses: actions/setup-dotnet@v5
7777
with:
7878
global-json-file: application/global.json
7979

@@ -95,7 +95,7 @@ jobs:
9595
dotnet user-secrets set "authentication-token-signing-key" "$(openssl rand -base64 64)" --id $USER_SECRETS_ID
9696
9797
- name: Setup Java JDK for SonarScanner
98-
uses: actions/setup-java@v4
98+
uses: actions/setup-java@v5
9999
with:
100100
distribution: "microsoft"
101101
java-version: "17"
@@ -135,7 +135,7 @@ jobs:
135135
136136
- name: Save API Artifacts
137137
if: ${{ steps.determine_deployment.outputs.deploy_staging == 'true' }}
138-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@v7
139139
with:
140140
name: account-api
141141
path: application/account/Api/publish/**/*
@@ -148,7 +148,7 @@ jobs:
148148
149149
- name: Save Workers Artifacts
150150
if: ${{ steps.determine_deployment.outputs.deploy_staging == 'true' }}
151-
uses: actions/upload-artifact@v4
151+
uses: actions/upload-artifact@v7
152152
with:
153153
name: account-workers
154154
path: application/account/Workers/publish/**/*
@@ -160,10 +160,10 @@ jobs:
160160

161161
steps:
162162
- name: Checkout Code
163-
uses: actions/checkout@v4
163+
uses: actions/checkout@v6
164164

165165
- name: Setup Node.js Environment
166-
uses: actions/setup-node@v4
166+
uses: actions/setup-node@v6
167167
with:
168168
node-version: 24
169169

@@ -172,7 +172,7 @@ jobs:
172172
run: npm ci
173173

174174
- name: Setup .NET Core SDK
175-
uses: actions/setup-dotnet@v4
175+
uses: actions/setup-dotnet@v5
176176
with:
177177
global-json-file: application/global.json
178178

.github/workflows/app-gateway.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Checkout Code
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v6
4040

4141
- name: Generate Version
4242
id: generate_version
@@ -57,7 +57,7 @@ jobs:
5757
echo "deploy_production=$deploy_production" >> $GITHUB_OUTPUT
5858
5959
- name: Setup Node.js Environment
60-
uses: actions/setup-node@v4
60+
uses: actions/setup-node@v6
6161
with:
6262
node-version: 24
6363

@@ -66,7 +66,7 @@ jobs:
6666
run: npm ci
6767

6868
- name: Setup .NET Core SDK
69-
uses: actions/setup-dotnet@v4
69+
uses: actions/setup-dotnet@v5
7070
with:
7171
global-json-file: application/global.json
7272

@@ -92,7 +92,7 @@ jobs:
9292
9393
- name: Save Artifacts
9494
if: ${{ steps.determine_deployment.outputs.deploy_staging == 'true' }}
95-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@v7
9696
with:
9797
name: app-gateway
9898
path: application/AppGateway/publish/**/*
@@ -104,10 +104,10 @@ jobs:
104104

105105
steps:
106106
- name: Checkout Code
107-
uses: actions/checkout@v4
107+
uses: actions/checkout@v6
108108

109109
- name: Setup Node.js Environment
110-
uses: actions/setup-node@v4
110+
uses: actions/setup-node@v6
111111
with:
112112
node-version: 24
113113

@@ -116,7 +116,7 @@ jobs:
116116
run: npm ci
117117

118118
- name: Setup .NET Core SDK
119-
uses: actions/setup-dotnet@v4
119+
uses: actions/setup-dotnet@v5
120120
with:
121121
global-json-file: application/global.json
122122

.github/workflows/back-office.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
steps:
4545
- name: Checkout Code
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v6
4747

4848
- name: Generate Version
4949
id: generate_version
@@ -64,7 +64,7 @@ jobs:
6464
echo "deploy_production=$deploy_production" >> $GITHUB_OUTPUT
6565
6666
- name: Setup Node.js Environment
67-
uses: actions/setup-node@v4
67+
uses: actions/setup-node@v6
6868
with:
6969
node-version: 24
7070

@@ -73,7 +73,7 @@ jobs:
7373
run: npm ci
7474

7575
- name: Setup .NET Core SDK
76-
uses: actions/setup-dotnet@v4
76+
uses: actions/setup-dotnet@v5
7777
with:
7878
global-json-file: application/global.json
7979

@@ -95,7 +95,7 @@ jobs:
9595
dotnet user-secrets set "authentication-token-signing-key" "$(openssl rand -base64 64)" --id $USER_SECRETS_ID
9696
9797
- name: Setup Java JDK for SonarScanner
98-
uses: actions/setup-java@v4
98+
uses: actions/setup-java@v5
9999
with:
100100
distribution: "microsoft"
101101
java-version: "17"
@@ -135,7 +135,7 @@ jobs:
135135
136136
- name: Save API Artifacts
137137
if: ${{ steps.determine_deployment.outputs.deploy_staging == 'true' }}
138-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@v7
139139
with:
140140
name: back-office-api
141141
path: application/back-office/Api/publish/**/*
@@ -148,7 +148,7 @@ jobs:
148148
149149
- name: Save Workers Artifacts
150150
if: ${{ steps.determine_deployment.outputs.deploy_staging == 'true' }}
151-
uses: actions/upload-artifact@v4
151+
uses: actions/upload-artifact@v7
152152
with:
153153
name: back-office-workers
154154
path: application/back-office/Workers/publish/**/*
@@ -160,10 +160,10 @@ jobs:
160160

161161
steps:
162162
- name: Checkout Code
163-
uses: actions/checkout@v4
163+
uses: actions/checkout@v6
164164

165165
- name: Setup Node.js Environment
166-
uses: actions/setup-node@v4
166+
uses: actions/setup-node@v6
167167
with:
168168
node-version: 24
169169

@@ -172,7 +172,7 @@ jobs:
172172
run: npm ci
173173

174174
- name: Setup .NET Core SDK
175-
uses: actions/setup-dotnet@v4
175+
uses: actions/setup-dotnet@v5
176176
with:
177177
global-json-file: application/global.json
178178

0 commit comments

Comments
 (0)