ci: add CVE Lite dependency audit workflow#1263
Open
sonukapoor wants to merge 1 commit into
Open
Conversation
Collaborator
|
generally I try to keep things save by not adding too many external tools to the CI chain :D. This repo is already managed by dependabot which already opens PRs for critical security updates |
Author
|
Totally fair - no pressure to add another tool if Dependabot is already covering you. One thing worth knowing: we shipped a fix mode in v1.26.0 that addresses the main Dependabot noise complaint. Instead of one PR per package, CVE Lite opens a single batched PR with OSV-validated fix versions and advisory IDs (GHSA-xxxx) in the body. Here's what an Action-generated fix PR looks like: sonukapoor/cve-lite-test#2 Happy to close both if you'd rather keep things simple. Just wanted to flag the difference in case it's useful down the road. |
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.
This PR adds a CVE Lite dependency audit workflow to immer's CI pipeline. CVE Lite CLI is an OWASP Lab Project that scans yarn.lock (and other lockfiles) directly against the OSV advisory database without installing packages, making it fast and safe to run in CI.
A scan of immer's current lockfile found 56 total findings across 1,310 resolved packages, including critical and high severity vulnerabilities. The workflow runs on every push and pull request to main, plus a scheduled weekly scan on Monday mornings to catch new advisories even when the lockfile hasn't changed.
The workflow uses
fail-on: highso any new high or critical severity finding in a PR will block the merge. SARIF output is enabled and uploaded to GitHub Code Scanning, which surfaces findings directly in the Security tab as code scanning alerts - no separate dashboard needed.All GitHub Actions are pinned to immutable commit SHA digests rather than mutable version tags, which prevents supply chain attacks where a tag is moved to point at malicious code.
More details on CVE Lite CLI, including documentation and the full feature set, are at https://owasp.org/cve-lite-cli.