-
Notifications
You must be signed in to change notification settings - Fork 152
Add cargo-audit to CI (#3378) #3823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MartinquaXD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice documentation of the known vulnerabilities. 👍
Grinsven
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we know when it no longer applies? Does cargo-audit also provide tools for that?
cargo-audit doesn't have this. You'd need to manually check audit.toml when upgrading dependencies from #3338 and remove the
matching RUSTSEC entries.
cargo-deny has automatic detection built in. It warns when an ignored advisory no longer applies to your dependency versions.
Can switch the CI job if you want that instead.
|
@Grinsven could you please rebase this PR onto the latest |
.cargo/audit.toml
Outdated
| # Only NEW vulnerabilities will cause CI to fail | ||
|
|
||
| [advisories] | ||
| # Known vulnerabilities that are tracked in issue #3338 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a link to the issue?
78dc80e to
cde3654
Compare
- Exclude 14 known vulnerabilities tracked in cowprotocol#3338 - Only new vulnerabilities will fail CI
cde3654 to
1f2d4b9
Compare
Integrates cargo-audit into the CI pipeline to scan for dependency vulnerabilities on every pull request. The rustsec/audit-check action runs cargo audit and fails CI if new vulnerabilities are detected.
Known vulnerabilities requiring non-trivial upgrades are excluded in .cargo/audit.toml. This includes 14 advisories tracked in #3338 covering sqlx (breaking changes to 0.8.x), unmaintained crates (atty, derivative, adler, instant, paste, proc-macro-error), and transitive dependencies with no available patches. Only NEW vulnerabilities will cause CI failures.
Changes:
Fixes #3378