ci: add OSV-Scanner scheduled CVE scanning workflow#69
Merged
Conversation
|
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. |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J9H9LCpM3UdtxVMEpfV3fB
16d2fe0 to
b8871c8
Compare
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.
Summary
Rebased onto current
main(da4cbd4). Thepip-audit.ymlthis PR originally added already exists on main (from PRs #71/#72, in a superior form with SHA-pinned actions, ubuntu+windows matrix, and--ignore-vuln CVE-2026-45829). That half was dropped during rebase conflict resolution.What remains — the one genuinely net-new file:
osv-scanner.ymlAdds Google's OSV-Scanner as a scheduled + PR-gated CVE workflow, complementing the existing
pip-audit.ymlon main. OSV-Scanner covers all dependency ecosystems vs the OSV.dev database and uploads native SARIF to the Security → Code scanning tab.pull_requestscan-prschedule/push main/workflow_dispatchscan-scheduledif: github.event_name == ...→ exactly one job runs per event; the other is skipped (neutral).permissions: minimum required —security-events: write,contents: read,actions: read.scan-args: -r ./→ recurse from repo root so every manifest/lockfile is covered.google/osv-scanner-action@9a498708959aeaef5ef730655706c5a1df1edbc2(v2.3.8), verified viagit ls-remote.Why CI was red before rebase:
invariants-gate: Old pyproject.toml TOML bug ([[tool.uv.sources]]) — fixed inda4cbd4on main, resolved by rebase.ubuntu/windowscoverage: Branch had old test state (54 tests / 56% coverage) — resolved by rebase to current main (119 tests).pip-audittrue positive: Old pip-audit.yml without--ignore-vuln— resolved by rebase (main's version now applies).Net diff on current main:
osv-scanner.ymlonly — 53 insertions. No runtime, topology, or invariant changes. No secrets required.Note: Can be merged before or after PR #73 (
constraints.txtheader) — no overlap between the two.