Skip to content

Commit 3bc5d4a

Browse files
Update Node.js runtime from 20 to 24
Node 20 is being deprecated and Node 24 is the latest LTS. This updates the GitHub Actions runtime, CI workflows, type definitions, and documentation to use Node 24. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f5b9717 commit 3bc5d4a

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Trust these instructions. Only search the codebase if information here is incomp
44

55
## Repository Overview
66

7-
**dependency-review-action** is a GitHub Action (TypeScript/Node.js 20) that scans pull requests for dependency changes, raising errors for vulnerabilities or invalid licenses. It queries the GitHub Dependency Review API, evaluates changes against configured rules, and produces job summaries and PR comments. The action entry point is `dist/index.js` (bundled via `ncc`). The repo is small (~15 source files, ~15 test files).
7+
**dependency-review-action** is a GitHub Action (TypeScript/Node.js 24) that scans pull requests for dependency changes, raising errors for vulnerabilities or invalid licenses. It queries the GitHub Dependency Review API, evaluates changes against configured rules, and produces job summaries and PR comments. The action entry point is `dist/index.js` (bundled via `ncc`). The repo is small (~15 source files, ~15 test files).
88

99
## Build & Validation Commands
1010

@@ -36,7 +36,7 @@ If format-check fails, run `npm run format` to auto-fix, then re-check.
3636

3737
### CI Checks (`.github/workflows/ci.yml`)
3838

39-
CI runs on PRs (excluding `**.md` changes) with Node 20:
39+
CI runs on PRs (excluding `**.md` changes) with Node 24:
4040

4141
1. **test** job: `npm ci --ignore-scripts``npm test`
4242
2. **lint** job: `npm ci --ignore-scripts``npm run format-check``npm run lint`
@@ -103,7 +103,7 @@ action.yml # Action metadata — inputs, outputs, and `runs.main: dis
103103

104104
### Important Notes
105105

106-
- The action runs on `node20` (declared in `action.yml`)
106+
- The action runs on `node24` (declared in `action.yml`)
107107
- Source imports often use relative `../src/` paths (e.g. `import {readConfig} from '../src/config'`)
108108
- Adding a new action input requires changes in: `action.yml` (input definition), `src/schemas.ts` (Zod schema with default), `src/config.ts` (reading the input), and relevant source/test files
109109
- `dist/index.js` is committed for GitHub Actions but PR contributors should NOT include `dist/` changes — maintainers handle rebuilding

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v6
2121
- uses: actions/setup-node@v6
2222
with:
23-
node-version: 20
23+
node-version: 24
2424
cache: npm
2525
- name: Install dependencies
2626
run: npm ci --ignore-scripts
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v6
3434
- uses: actions/setup-node@v6
3535
with:
36-
node-version: 20
36+
node-version: 24
3737
cache: npm
3838
- name: Install dependencies
3939
run: npm ci --ignore-scripts

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ outputs:
9292
description: Denied dependency changes (JSON)
9393

9494
runs:
95-
using: 'node20'
95+
using: 'node24'
9696
main: 'dist/index.js'

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"devDependencies": {
4747
"@types/jest": "^29.5.14",
48-
"@types/node": "^20",
48+
"@types/node": "^24",
4949
"@types/spdx-expression-parse": "^3.0.4",
5050
"@typescript-eslint/eslint-plugin": "^6.21.0",
5151
"@typescript-eslint/parser": "^6.21.0",

0 commit comments

Comments
 (0)