Skip to content

Commit b036a97

Browse files
Update Node.js base image: 20,22,24 (#126)
1 parent 6fbc43a commit b036a97

7 files changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/build-scan-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- name: Run Aqua Trivy scan
104104
id: trivy-scan
105105
if: ${{ matrix.target == 'production' }}
106-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1
106+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
107107
with:
108108
input: image-${{ matrix.image.nodeVersion }}.tar
109109
scan-type: image

.github/workflows/nightly-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Run Aqua Trivy scan
4242
id: trivy-scan
43-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1
43+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
4444
with:
4545
image-ref: defradigital/${{env.IMAGE_NAME}}:${{env.DEFRA_VERSION}}-node${{matrix.image.nodeVersion}}
4646
format: sarif

.grype.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ ignore:
3535
reason: "Node 24: tar patched but not yet available in Node.js base images"
3636
- vulnerability: CVE-2026-2673
3737
reason: "Alpine libcrypto: No fix available"
38+
- vulnerability: GHSA-c2c7-rcm5-vvqj
39+
reason: "Node 22: picomatch patched but not yet available in Node.js base images"
40+
- vulnerability: GHSA-f886-m6hf-6m8v
41+
reason: "Node 20: brace-expansion patched but not yet available in Node.js base images"
42+
- vulnerability: GHSA-3v7f-55p6-f55p
43+
reason: "Node 22: picomatch patched but not yet available in Node.js base images"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set default values for build arguments
2-
ARG DEFRA_VERSION=3.0.4
3-
ARG BASE_VERSION=24.14.0-alpine3.23
2+
ARG DEFRA_VERSION=3.0.5
3+
ARG BASE_VERSION=24.14.1-alpine3.23
44

55
FROM node:$BASE_VERSION AS production
66

JOB.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
DEFRA_VERSION=3.0.4
1+
DEFRA_VERSION=3.0.5
22
IMAGE_NAME=node

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ The following table lists the versions of node available, and the parent Node.js
1414

1515
| Node version | Parent image |
1616
| ------------- | ----------------- |
17-
| 20.20.1 | 20.20.1-alpine3.23 |
18-
| 22.22.1 | 22.22.1-alpine3.23 |
19-
| 24.14.0 | 24.14.0-alpine3.23 |
17+
| 20.20.2 | 20.20.2-alpine3.23 |
18+
| 22.22.2 | 22.22.2-alpine3.23 |
19+
| 24.14.1 | 24.14.1-alpine3.23 |
2020

2121
Two parent images are created for each version:
2222

image-matrix.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[
2-
{"nodeVersion": "20.20.1", "alpineVersion": "3.23", "tags": ["latest-20"]},
3-
{"nodeVersion": "22.22.1", "alpineVersion": "3.23", "tags": ["latest-22"]},
4-
{"nodeVersion": "24.14.0", "alpineVersion": "3.23", "tags": ["latest-24", "latest"]}
2+
{"nodeVersion": "20.20.2", "alpineVersion": "3.23", "tags": ["latest-20"]},
3+
{"nodeVersion": "22.22.2", "alpineVersion": "3.23", "tags": ["latest-22"]},
4+
{"nodeVersion": "24.14.1", "alpineVersion": "3.23", "tags": ["latest-24", "latest"]}
55
]

0 commit comments

Comments
 (0)