Skip to content

Conversation

syphar
Copy link
Member

@syphar syphar commented Nov 12, 2021

If we want the audit checks on PRs or in forks to pass we have to ignore everything we don't directly fix.

I'm not 100% sure what to add in the comments, I'm happy to add more.

I also set deny = ["warnings"] which makes the audit fail when unmaintained crates are added like I did in #1541 .

@syphar syphar force-pushed the ignore-advisories branch 2 times, most recently from b389d60 to 1f23ef7 Compare November 12, 2021 14:32
@syphar syphar marked this pull request as draft November 12, 2021 14:34
@syphar
Copy link
Member Author

syphar commented Nov 12, 2021

don't merge just yet, I want to test the deny = ["warnings"] part first

Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

LGTM whenever you want to merge :)

@Nemo157
Copy link
Member

Nemo157 commented Nov 12, 2021

Will we get an error/warning if one of the ignored advisories does not trigger?

@syphar
Copy link
Member Author

syphar commented Nov 12, 2021

Will we get an error/warning if one of the ignored advisories does not trigger?

I don't think so.

Also, I saw an option to deny yanked releases, not sure if that would be usedful for us. IMHO it depends on why the release was yanked :)

@syphar syphar force-pushed the ignore-advisories branch 2 times, most recently from f6f65b0 to a35758b Compare November 12, 2021 14:46
@syphar
Copy link
Member Author

syphar commented Nov 12, 2021

I need to dig deeper here... the actions-rs/audit-check GH action doesn't fail the job when we only have warnings.

@syphar syphar added the S-waiting-on-author Status: This PR is incomplete or needs to address review comments label Nov 12, 2021
@syphar
Copy link
Member Author

syphar commented Nov 12, 2021

@jyn514 to me it seems like that actions-rs/audit-check is ignoring warnings coming from cargo audit, even when audit itself correctly fails.

Seeing open PRs and issues I'm actually not sure if a PR fixing this would even be looked at :) Or do we know someone there?

IMHO we should merge this PR and then see separately how we solve audit. Running it directly would mean we don't have the nicely created issues any more. Or we need to fork it.

@syphar syphar marked this pull request as ready for review November 12, 2021 15:11
@syphar
Copy link
Member Author

syphar commented Nov 12, 2021

Like this the scheduled check should be fine also for forks, only raising warnings (unmaintained dependency) on PRs doesn't.

@syphar syphar added S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Nov 12, 2021
@jyn514
Copy link
Member

jyn514 commented Nov 12, 2021

IMHO we should merge this PR and then see separately how we solve audit.

👍 Seems good

@jyn514 jyn514 merged commit fab639a into rust-lang:master Nov 12, 2021
@syphar syphar deleted the ignore-advisories branch November 13, 2021 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants