ci: add cargo-audit dependency scan (Bundle C) - #35
Conversation
Closes #28. Adds an 'audit' job to the CI workflow that installs cargo-audit and runs 'cargo audit' against the resolved dependency tree. Because Cargo.lock is gitignored, the job generates one first. Actions are SHA-pinned, matching the existing jobs. Verified locally: no advisories in the current tree. https://claude.ai/code/session_01TPpTHPokxsZ3dQpRzg4NkD
|
Warning Review limit reached
More reviews will be available in 32 minutes and 1 second. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Make the audit deterministic and avoid clobbering a committed lockfile: only run 'cargo generate-lockfile' when no Cargo.lock exists, otherwise audit the committed one. Resolves the review note about non-deterministic resolution and the interaction with committing Cargo.lock (Bundle D). https://claude.ai/code/session_01TPpTHPokxsZ3dQpRzg4NkD
Overview
Bundle C — adds a dependency vulnerability scan to CI (#28).
A new
auditjob installscargo-auditand runscargo auditagainst the resolved dependency tree, so a known RUSTSEC advisory inchromiumoxide,tokio,regex, etc. surfaces on every push/PR instead of silently landing.Details
Cargo.lockis gitignored (library crate), the job runscargo generate-lockfilefirst so it audits the exact resolved versions.test/lintjobs (least-privilegepermissions,persist-credentials: false).cargo auditreports no advisories in the current tree (150 deps scanned), so the job is green on day one.Test plan
cargo generate-lockfile+cargo auditrun locally → clean (exit 0)Closes #28
https://claude.ai/code/session_01TPpTHPokxsZ3dQpRzg4NkD
Generated by Claude Code