Skip to content

github/secret_scanning: Consider revoked tokens as true positive #5644

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

Merged
merged 3 commits into from
Dec 14, 2022

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 14, 2022

When a token has already been revoked we will return to GitHub that it was a "true positive" now, but we skip sending out a notification email to the owner since we don't allow unrevoking tokens.

This PR also extracts a send_notification_email() function, which ensures that an error while sending emails will not cause other tokens to not be revoked.

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Dec 14, 2022
@Turbo87 Turbo87 force-pushed the false-false-positives branch from 1302290 to 6b11081 Compare December 14, 2022 09:41
@Turbo87 Turbo87 merged commit 99b6212 into rust-lang:master Dec 14, 2022
@Turbo87 Turbo87 deleted the false-false-positives branch December 14, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant