Skip to content
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

feat: replace cargo audit with cargo deny #1597

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

LesnyRumcajs
Copy link
Contributor

Replaced cargo audit with a more comprehensive cargo deny. Note that the currently used Cargo Audit Action is no longer maintained and repository archived.

The included deny.toml (mostly generated with cargo deny init) includes advisory exceptions on dependencies, which should be eventually tackled. I can create corresponding issues - from a quick glimpse most have a known solution (update or replace the dep with a maintained one).

We might want to further customize the configuration file, e.g. if licensing is something we need to watch for.

#db-urls = ["https://github.com/rustsec/advisory-db"]
# A list of advisory IDs to ignore. Note that ignored advisories will still
# output a note when they are encountered.
ignore = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently suppressed advisories.

Copy link
Contributor

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to get @Stebalien's opinions on this since I don't know cargo very deeply. But as it is this looks like a strict improvement to me.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use this in tempfile and it works well. I'd slim down the deny.toml a bit (IMO, we don't need all the comments), but LGTM.

Comment on lines +73 to +78
"RUSTSEC-2024-0370", # proc-macro-error is unmaintained
"RUSTSEC-2024-0384", # instant is unmaintained
"RUSTSEC-2024-0421", # idna version is too old
"RUSTSEC-2021-0145", # atty issue
"RUSTSEC-2024-0375", # atty unmaintained
"RUSTSEC-2024-0402", # hashbrown issue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All except "RUSTSEC-2024-0384" should be fixed by #1599. Unfortunately, we still pull in instant because ethers is deprecated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd merge this as-is, then update the deps later.

@Stebalien Stebalien added this pull request to the merge queue Jan 17, 2025
@Stebalien
Copy link
Member

By "I'd merge this" I guess I mean "I'm merging this". CI is currently broken.

@LesnyRumcajs
Copy link
Contributor Author

I use this in tempfile and it works well. I'd slim down the deny.toml a bit (IMO, we don't need all the comments), but LGTM.

Makes sense, I'll cut the excessive fat in a follow-up PR.

Merged via the queue into master with commit 28079fc Jan 17, 2025
11 checks passed
@Stebalien Stebalien deleted the replace-audit-with-deny branch January 17, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

3 participants