ci(security): add SCA CVE gate for Python and docs dependencies#152
Open
tiantt wants to merge 1 commit into
Open
ci(security): add SCA CVE gate for Python and docs dependencies#152tiantt wants to merge 1 commit into
tiantt wants to merge 1 commit into
Conversation
Adds a Software Composition Analysis gate so a vulnerable dependency can no longer silently reach main or a release (previously the only supply- chain checks were gitleaks + ruff — no CVE scanning at all). .github/workflows/security-audit.yml runs on PR, push to main, a weekly schedule, and manual dispatch: - pip-audit --strict on requirements.txt (the shipped SDK deps). Currently clean; an escape hatch lives in .pip-audit-ignore (advisory IDs with a mandatory written justification). - npm audit on the docs/ VitePress toolchain, gating at critical. The tree is build-time-only (never in the PyPI wheel); all advisories are also printed non-blocking for visibility. Also: - npm audit fix on docs/package-lock.json clears 3 of 6 advisories (semver-safe). The residual 3 are dev-server-only (vite/esbuild via vitepress) with no fix on the current stable line; left for a future vitepress major bump. - pip-audit>=2.7.0 added to the dev dependency group for local runs.
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.
Adds a Software Composition Analysis gate so a vulnerable dependency can no longer silently reach main or a release (previously the only supply- chain checks were gitleaks + ruff — no CVE scanning at all).
.github/workflows/security-audit.yml runs on PR, push to main, a weekly schedule, and manual dispatch:
Also: