fix(actions): don't use pull_request_target#13666
Closed
allendema wants to merge 1 commit intolinuxmint:masterfrom
Closed
fix(actions): don't use pull_request_target#13666allendema wants to merge 1 commit intolinuxmint:masterfrom
allendema wants to merge 1 commit intolinuxmint:masterfrom
Conversation
mod(actions): update and pin action Signed-off-by: Allen <64094914+allendema@users.noreply.github.com>
Member
|
I don't think we're at risk here. I use pull_request_target to allow our pattern-check script to post a comment on the pull request when it completes. Any other route to achieve this is a lot more painful, and for no gain:
I'm not sold on changing action versioning - will we lose notifications when these go out-of-date (like dependabot fly-bys, etc...)? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
pull_request_targetis insecure.What
Don't use pull_request_target.
Update and pin action.
Context
https://research.jfrog.com/post/part-1-pull-request-target-exploitation/#:~:text=pull%5Frequest%5Ftarget,-%2C%20where
See its usage here: https://github.com/linuxmint/cinnamon/actions?query=event%3Apull_request_target.
TODO
Remove all instances of https://github.com/search?q=org%3Alinuxmint+pull_request_target&type=code.
Update description in https://github.com/linuxmint/github-actions/blob/master/install-deps/action.yml#L6.
All actions in the org need to be updated, pinned.
Workflows in https://github.com/linuxmint should be completly rethinked.
Tests welcome.