-
Notifications
You must be signed in to change notification settings - Fork 27k
ci: Remove unused benchmark workflow. #58760
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
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
devversion
left a comment
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.
I haven't refreshed my mind on the "potential security issue", but from my quick look— I think we only check out the fork PR at the given comment time; which is assumed to verified/checked by the team member at comment time.
On the other hand, I'm not super opposed to deleting this, but if so, we should also delete the logic in yarn benchmark prepare-for-github-action
The problem is subtle, but it lies here: Essentially there is a race condition due to the multi-second delay between when the trusted user creates the comment and the benchmark workflow starts running. As a result, the workflow will check out the latest code from whatever the PR head branch is of the fork repo. Now, realistically this will not get exploited (which is why I am simply making a PR to remove the workflow) because the workflow has hasn't been used in over a year. I'll update my PR to remove the associated benchmark logic. |
|
Can you please rebase your PR ? |
|
Seeing no activity on this PR, I'm going to close it. Feel free to open a new PR if you'd like to land this change. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The
benchmark-compare.ymlworkflow hasn't been used in over a year, it also contains a TOCTOU issue that external contributors could exploit if maintainers did decide to start using it.Issue Number: N/A
What is the new behavior?
Remove the workflow because it is not used.
Does this PR introduce a breaking change?
Other information