Skip to content

Commit c10517b

Browse files
committed
Update GitHub Actions for Node 24 runtime
1 parent 19bf5fc commit c10517b

5 files changed

Lines changed: 49 additions & 51 deletions

File tree

.github/workflows/deploy-staged.yml

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
type: boolean
1414

1515
env:
16-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1716
PROJECT_ID: policyengine-household-api
1817
REGION: us-central1
1918
IMAGE_NAME: us-central1-docker.pkg.dev/policyengine-household-api/policyengine-household-api/policyengine-household-api
@@ -36,19 +35,21 @@ jobs:
3635
3736
steps:
3837
- name: Checkout code
39-
uses: actions/checkout@v4
38+
uses: actions/checkout@v6
4039

4140
- name: Set up Python
42-
uses: actions/setup-python@v4
41+
uses: actions/setup-python@v6
4342
with:
4443
python-version: ${{ env.PYTHON_VERSION }}
4544

45+
- name: Authenticate to Google Cloud
46+
uses: google-github-actions/auth@v3
47+
with:
48+
credentials_json: ${{ secrets.GCP_SA_KEY }}
4649
- name: Set up Cloud SDK
47-
uses: google-github-actions/setup-gcloud@v2
50+
uses: google-github-actions/setup-gcloud@v3
4851
with:
4952
project_id: ${{ env.PROJECT_ID }}
50-
service_account_key: ${{ secrets.GCP_SA_KEY }}
51-
export_default_credentials: true
5253

5354
- name: Install dependencies
5455
run: make install
@@ -85,41 +86,37 @@ jobs:
8586

8687
steps:
8788
- name: Checkout code
88-
uses: actions/checkout@v4
89-
89+
uses: actions/checkout@v6
9090
- name: Authenticate to Google Cloud
91-
uses: google-github-actions/auth@v2
91+
uses: google-github-actions/auth@v3
9292
with:
9393
credentials_json: ${{ secrets.GCP_SA_KEY }}
94-
9594
- name: Set up Cloud SDK
96-
uses: google-github-actions/setup-gcloud@v2
95+
uses: google-github-actions/setup-gcloud@v3
9796
with:
9897
project_id: ${{ env.PROJECT_ID }}
99-
service_account_key: ${{ secrets.GCP_SA_KEY }}
100-
export_default_credentials: true
10198

10299
- name: Log in to Google Artifact Registry
103-
uses: docker/login-action@v2
100+
uses: docker/login-action@v4
104101
with:
105102
registry: us-central1-docker.pkg.dev
106103
username: _json_key
107104
password: ${{ secrets.GCP_SA_KEY }}
108105

109106
- name: Log in to GitHub Container Registry
110107
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
111-
uses: docker/login-action@v2
108+
uses: docker/login-action@v4
112109
with:
113110
registry: ghcr.io
114111
username: ${{ github.actor }}
115112
password: ${{ secrets.GITHUB_TOKEN }}
116113

117114
- name: Set up Docker Buildx
118-
uses: docker/setup-buildx-action@v3
115+
uses: docker/setup-buildx-action@v4
119116

120117
- name: Extract deploy image metadata
121118
id: deploy-meta
122-
uses: docker/metadata-action@v5
119+
uses: docker/metadata-action@v6
123120
with:
124121
images: ${{ env.IMAGE_NAME }}
125122
tags: |
@@ -128,15 +125,15 @@ jobs:
128125
- name: Extract GHCR image metadata
129126
id: ghcr-meta
130127
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
131-
uses: docker/metadata-action@v5
128+
uses: docker/metadata-action@v6
132129
with:
133130
images: ghcr.io/${{ github.repository }}
134131
tags: |
135132
type=sha,format=long,prefix=,suffix=
136133
type=raw,value=latest
137134
138135
- name: Build and push Docker image
139-
uses: docker/build-push-action@v5
136+
uses: docker/build-push-action@v7
140137
with:
141138
context: .
142139
file: ./gcp/policyengine_household_api/Dockerfile.production
@@ -174,10 +171,10 @@ jobs:
174171

175172
steps:
176173
- name: Checkout code
177-
uses: actions/checkout@v4
174+
uses: actions/checkout@v6
178175

179176
- name: Authenticate to Google Cloud
180-
uses: google-github-actions/auth@v2
177+
uses: google-github-actions/auth@v3
181178
with:
182179
credentials_json: ${{ secrets.GCP_SA_KEY }}
183180

@@ -214,15 +211,15 @@ jobs:
214211

215212
steps:
216213
- name: Checkout code
217-
uses: actions/checkout@v4
214+
uses: actions/checkout@v6
218215

219216
- name: Set up Python
220-
uses: actions/setup-python@v5
217+
uses: actions/setup-python@v6
221218
with:
222219
python-version: ${{ env.PYTHON_VERSION }}
223220

224221
- name: Install uv
225-
uses: astral-sh/setup-uv@v5
222+
uses: astral-sh/setup-uv@v8.1.0
226223
with:
227224
version: "0.8.5"
228225

@@ -256,10 +253,10 @@ jobs:
256253

257254
steps:
258255
- name: Checkout code
259-
uses: actions/checkout@v4
256+
uses: actions/checkout@v6
260257

261258
- name: Authenticate to Google Cloud
262-
uses: google-github-actions/auth@v2
259+
uses: google-github-actions/auth@v3
263260
with:
264261
credentials_json: ${{ secrets.GCP_SA_KEY }}
265262

@@ -285,10 +282,10 @@ jobs:
285282

286283
steps:
287284
- name: Checkout code
288-
uses: actions/checkout@v4
285+
uses: actions/checkout@v6
289286

290287
- name: Authenticate to Google Cloud
291-
uses: google-github-actions/auth@v2
288+
uses: google-github-actions/auth@v3
292289
with:
293290
credentials_json: ${{ secrets.GCP_SA_KEY }}
294291

@@ -315,10 +312,10 @@ jobs:
315312

316313
steps:
317314
- name: Checkout code
318-
uses: actions/checkout@v4
315+
uses: actions/checkout@v6
319316

320317
- name: Authenticate to Google Cloud
321-
uses: google-github-actions/auth@v2
318+
uses: google-github-actions/auth@v3
322319
with:
323320
credentials_json: ${{ secrets.GCP_SA_KEY }}
324321

@@ -362,15 +359,15 @@ jobs:
362359

363360
steps:
364361
- name: Checkout code
365-
uses: actions/checkout@v4
362+
uses: actions/checkout@v6
366363

367364
- name: Set up Python
368-
uses: actions/setup-python@v5
365+
uses: actions/setup-python@v6
369366
with:
370367
python-version: ${{ env.PYTHON_VERSION }}
371368

372369
- name: Install uv
373-
uses: astral-sh/setup-uv@v5
370+
uses: astral-sh/setup-uv@v8.1.0
374371
with:
375372
version: "0.8.5"
376373

@@ -393,12 +390,12 @@ jobs:
393390

394391
steps:
395392
- name: Checkout code
396-
uses: actions/checkout@v4
393+
uses: actions/checkout@v6
397394
with:
398395
fetch-depth: 0
399396

400397
- name: Set up Python
401-
uses: actions/setup-python@v5
398+
uses: actions/setup-python@v6
402399
with:
403400
python-version: ${{ env.PYTHON_VERSION }}
404401

.github/workflows/pr.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Pull request
33
on: pull_request
44

55
env:
6-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
76
PROJECT_ID: policyengine-household-api
87
PYTHON_VERSION: "3.12"
98

@@ -16,10 +15,10 @@ jobs:
1615
name: Lint
1716
runs-on: ubuntu-latest
1817
steps:
19-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
2019
with:
2120
fetch-depth: 0
22-
- uses: actions/setup-python@v5
21+
- uses: actions/setup-python@v6
2322
with:
2423
python-version: ${{ env.PYTHON_VERSION }}
2524
- name: Install Ruff
@@ -30,7 +29,7 @@ jobs:
3029
name: Check changelog fragment
3130
runs-on: ubuntu-latest
3231
steps:
33-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3433
with:
3534
fetch-depth: 0
3635
- name: Check changelog fragment exists
@@ -40,17 +39,19 @@ jobs:
4039
runs-on: ubuntu-latest
4140
steps:
4241
- name: Checkout repo
43-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4443
- name: Set up Python
45-
uses: actions/setup-python@v5
44+
uses: actions/setup-python@v6
4645
with:
4746
python-version: ${{ env.PYTHON_VERSION }}
47+
- name: Authenticate to Google Cloud
48+
uses: google-github-actions/auth@v3
49+
with:
50+
credentials_json: ${{ secrets.GCP_SA_KEY }}
4851
- name: Set up Cloud SDK
49-
uses: google-github-actions/setup-gcloud@v0
52+
uses: google-github-actions/setup-gcloud@v3
5053
with:
5154
project_id: ${{ env.PROJECT_ID }}
52-
service_account_key: ${{ secrets.GCP_SA_KEY }}
53-
export_default_credentials: true
5455
- name: Install dependencies
5556
run: make install
5657
- name: Run tests without auth

.github/workflows/update-versioning.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches: [ main ]
66

77
env:
8-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
98
REGION: us-central1
109
SERVICE_NAME: policyengine-household-api
1110
IMAGE_NAME: gcr.io/policyengine-household-api/policyengine-household-api
@@ -25,16 +24,16 @@ jobs:
2524
app-id: ${{ secrets.APP_ID }}
2625
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2726
- name: Checkout repo
28-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2928
with:
3029
ref: main
3130
token: ${{ steps.app-token.outputs.token }}
3231
- name: Install uv
33-
uses: astral-sh/setup-uv@v5
32+
uses: astral-sh/setup-uv@v8.1.0
3433
with:
3534
version: "0.8.5"
3635
- name: Setup Python
37-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
3837
with:
3938
python-version: "3.12"
4039
- name: Sync dependencies

.github/workflows/weekly-update.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2222

2323
- name: Checkout repo
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525
with:
2626
ref: main
2727
token: ${{ steps.app-token.outputs.token }}
2828

2929
- name: Set up Python
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@v6
3131
with:
3232
python-version: "3.12"
3333

3434
- name: Install uv
35-
uses: astral-sh/setup-uv@v5
35+
uses: astral-sh/setup-uv@v8.1.0
3636
with:
3737
version: "0.8.5"
3838

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated GitHub Actions workflows for Node 24-compatible action runtimes.

0 commit comments

Comments
 (0)