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

Remove pull_request_review processing from actions #6099

Merged
merged 1 commit into from
May 5, 2023

Conversation

JimSuplizio
Copy link
Member

@JimSuplizio JimSuplizio commented May 5, 2023

This update removes the pull_request_review processing. The reason for this is that particular event has a potential security hole. Unlike the other events, which run against the files that are already in the repository, the pull_request_review event will run against the files in the PR. While the actions do require approval to run if they're initiated by someone without permissions, it would require people to be aware of the files in the PR but, as we've seen, people don't always pay attention and sometimes blindly approve things. If someone were to make a PR with changes to .github/workflows yml files, they could block the action and scrape out the temporary, generated GITHUB_TOKEN.

The pull_request_review processing only removed the no-recent-activity label when a review was submitted. That label is used in scheduled event processing, along with days since last updated. While this event is no longer processed, any change to the PR, including a review, would reset the time since last update which alleviates the concern about the label not being removed in this case.

@JimSuplizio JimSuplizio added the GitHub Event Processor Anything related to the GitHub Event Processor label May 5, 2023
@JimSuplizio JimSuplizio requested a review from danieljurek May 5, 2023 16:24
@JimSuplizio JimSuplizio self-assigned this May 5, 2023
@JimSuplizio JimSuplizio requested a review from a team as a code owner May 5, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GitHub Event Processor Anything related to the GitHub Event Processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants