Skip to content

Commit 9b1d162

Browse files
authored
Bump to Node 24 (#62)
1 parent aac4ab9 commit 9b1d162

File tree

7 files changed

+25
-41
lines changed

7 files changed

+25
-41
lines changed

.github/actionlint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
paths:
2+
'**/*.yml':
3+
ignore:
4+
# https://github.com/rhysd/actionlint/issues/559
5+
- 'invalid runner name "node24"'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: 'npm build'
5656
run: 'npm ci && npm run build'
5757

58-
- uses: 'google-github-actions/auth@v2' # ratchet:exclude
58+
- uses: 'google-github-actions/auth@v3' # ratchet:exclude
5959
with:
6060
workload_identity_provider: 'projects/251902844862/locations/global/workloadIdentityPools/github/providers/my-repo'
6161
service_account: 'iac-scan-plugins@iac-scan-integration-test.iam.gserviceaccount.com'
@@ -83,7 +83,7 @@ jobs:
8383
- name: 'npm build'
8484
run: 'npm ci && npm run build'
8585

86-
- uses: 'google-github-actions/auth@v2' # ratchet:exclude
86+
- uses: 'google-github-actions/auth@v3' # ratchet:exclude
8787
with:
8888
workload_identity_provider: 'projects/251902844862/locations/global/workloadIdentityPools/github/providers/my-repo'
8989
service_account: 'iac-scan-plugins@iac-scan-integration-test.iam.gserviceaccount.com'

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Cloud product, please contact [Google Cloud
2121
support](https://cloud.google.com/support).**
2222

2323
> [!IMPORTANT]
24-
> This action requires the Security Command Center Premium tier or Enterprise
25-
> tier. In the Premium tier, you must be a subscription customer to use this
24+
> This action requires the Security Command Center Premium tier or Enterprise
25+
> tier. In the Premium tier, you must be a subscription customer to use this
2626
> action. You must activate Security Command Center at the organization level to
2727
> use this feature.
2828
@@ -35,7 +35,7 @@ support](https://cloud.google.com/support).**
3535
* This action requires a Google Cloud service account which has the **Security Posture Shift-Left Validator** role or the **Security Posture Admin** role on the Google Cloud organization that includes the IaC resources. For more information, see [Authorization](#authorization).
3636

3737

38-
* This action runs using Node 20. If you are using self-hosted GitHub Actions
38+
* This action runs using Node 24. If you are using self-hosted GitHub Actions
3939
runners, you must use a [runner
4040
version](https://github.com/actions/virtual-environments) that supports this
4141
version or later.
@@ -54,13 +54,13 @@ jobs:
5454
steps:
5555
- uses: 'actions/checkout@v4'
5656
- id: 'auth'
57-
uses: 'google-github-actions/auth@v2'
57+
uses: 'google-github-actions/auth@v3'
5858
with:
5959
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
6060
service_account: '[email protected]'
6161

6262
- id: 'analyze-code-security-scc'
63-
uses: 'google-github-actions/analyze-code-security-scc@v0'
63+
uses: 'google-github-actions/analyze-code-security-scc@v1'
6464
with:
6565
organization_id: '123456789'
6666
scan_file_ref: './tf_plan.json'
@@ -174,14 +174,14 @@ jobs:
174174
175175
steps:
176176
- id: 'auth'
177-
uses: 'google-github-actions/auth@v2'
177+
uses: 'google-github-actions/auth@v3'
178178
with:
179179
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
180180
service_account: '[email protected]'
181181
182182
183183
- id: 'analyze-code-security-scc'
184-
uses: 'google-github-actions/analyze-code-security-scc@v0'
184+
uses: 'google-github-actions/analyze-code-security-scc@v1'
185185
```
186186

187187

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ outputs:
110110
violations are found in the scan file.
111111
112112
runs:
113-
using: 'node20'
113+
using: 'node24'
114114
main: 'dist/main/index.js'

bin/runTests.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"docs": "./node_modules/.bin/actions-gen-readme",
99
"lint": "eslint .",
1010
"format": "eslint . --fix",
11-
"test": "bash ./bin/runTests.sh"
11+
"test": "node --require ts-node/register --test-reporter spec --test tests/**/*.test.ts"
1212
},
1313
"engines": {
14-
"node": ">= 20.x",
14+
"node": ">= 24.x",
1515
"npm": ">= 11.x"
1616
},
1717
"repository": {
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@actions/core": "^1.11.1",
3131
"@actions/http-client": "^2.2.3",
32-
"@google-github-actions/actions-utils": "^0.8.10",
32+
"@google-github-actions/actions-utils": "^1.0.1",
3333
"google-auth-library": "^10.3.0"
3434
},
3535
"devDependencies": {

0 commit comments

Comments
 (0)