-
Notifications
You must be signed in to change notification settings - Fork 89
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
torchi: Remove unprivileged access to ciflow #6324
Conversation
Removes the ability for users who are unprivileged to apply ciflow labels to PRs. This is a potential security risk since it allows for the following workflow: * Users submits benign PR * Maintainer approves workflows to be run * User modifies PR to include malicious code in workflows triggered by ciflow * User uses `@pytorchbot label ciflow/<bleh>` to apply ciflow labels Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
lgtm
IMO, we could consider removing |
@huydhn we still have other classes of labels like "topic: ..." and "release notes:...". Edit: They are used regularly (example) |
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.
IMO it does not solve the underlying if user pushes malitious change after someone adds ciflow/ label. Bot should not create tags if workflows are not approved
Good point, there might be folks without write permission trying to add these labels, but it's probably rare because these labels are mostly added automatically or added by the reviewer. Given the issue today, it makes sense to reduce the attack surface by removing |
As per clickhouse, in the past 4 weeks these labels were added 140 times by folks who's author_association was not |
Hmm, there is also |
For my understanding, I think (I can't imagine very many drive by contributors will even know the ciflow labels exist.) |
Removes the ability for users who are unprivileged to apply ciflow labels to PRs. This is a potential security risk since it allows for the following workflow:
@pytorchbot label ciflow/<bleh>
to apply ciflow labels