Skip to content

Improve: fail the image scan when Node.js misses a security release - #551

Merged
SandObserver merged 1 commit into
mainfrom
chore/node-security-scan
Oct 24, 2026
Merged

SandObserver merged 1 commit into
mainfrom
chore/node-security-scan

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Add scripts/node-security.js, which fails when nodejs.org/dist/index.json lists a newer security release on the installed Node.js major line. An unreadable version or index also fails.
  • Add a step to the weekly published image scan that reads NODE_VERSION from the image and runs the script. It runs even when the Trivy step fails.
  • Trivy does not report the Node.js runtime in the image, so a Node security release never failed this scan.

Testing
All green. Added 6 tests for the version comparison.

Changelog

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.

@SandObserver SandObserver added the github_actions Pull requests that update GitHub Actions code label Oct 24, 2026
@SandObserver
SandObserver merged commit 1679f73 into main Oct 24, 2026
6 checks passed
@SandObserver
SandObserver deleted the chore/node-security-scan branch October 24, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant