Automated dependency vulnerability - #149
Merged
elizabetheonoja-art merged 2 commits intoJul 18, 2026
Merged
Conversation
…ulnerability-scanning Add GitHub Actions dependency vulnerability scanning (npm audit + OSV)
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
elizabetheonoja-art
merged commit Jul 18, 2026
7fec3e5
into
Utility-Protocol:main
1 of 3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Add an automated, CI-enforced dependency vulnerability scanning pipeline to detect and surface high/critical npm advisories and OSV lockfile findings for this frontend service.
Description
Add a new workflow Dependency Vulnerability Scan that runs on dependency-changing PRs, scheduled weekdays, pushes to main, and manual dispatches and that runs npm audit (JSON) and an OSV lockfile scan with SARIF upload.
Add scripts/summarize-npm-audit.mjs to convert npm audit --json output into a concise Markdown summary with severity totals, fix availability, and top vulnerable packages.
Upload raw artifacts for 30 days and comment the audit summary on PRs, and fail the OSV job when the scanner reports vulnerabilities.
Add documentation and a runbook at docs/dependency-vulnerability-scanning.md and docs/runbooks/dependency-vulnerability-scanning.md, and expose a local helper script via package.json as audit:security.
Testing
Ran npx eslint scripts/summarize-npm-audit.mjs which succeeded for the new script.
Ran the summary generator with a sample audit JSON using node scripts/summarize-npm-audit.mjs which produced the expected Markdown output.
Ran npm run lint which failed due to pre-existing unrelated lint errors in src/components/map/AssetHeatmapLayer.tsx.
Ran npm test which failed due to pre-existing unrelated unit/test failures in tests/components/AssetHeatmapLayer.test.tsx and tests/unit/keyCache.test.ts.
Ran npm run build which failed in this environment because next/font could not fetch Google Fonts.
Ran npm run audit:security which failed here because the npm audit endpoint returned 403 Forbidden in this environment.
Closes #125