-
Notifications
You must be signed in to change notification settings - Fork 175
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
chore(ci): properly use pull_request_target
trigger type for driver api and schema version ci checks
#977
Conversation
pull_request: | ||
pull_request_target: | ||
types: | ||
- ready_for_review |
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.
Only when PR gets ready for review ;)
/milestone 0.11.0 |
Mmh i cannot get the trigger to work :/ i tried pushing a commit that touches |
pull_request_target
trigger type for driver api and schema version ci checkspull_request_target
trigger type for driver api and schema version ci checks
/cc @Molter73 WDYT? You are super expert in the CI area :D |
… api and schema version ci checks. Signed-off-by: Federico Di Pierro <[email protected]>
e07ed8f
to
9bdd6d2
Compare
Was able to test it in FedeDP/plugins#1. |
9bdd6d2
to
6c17119
Compare
pull_request_target
trigger type for driver api and schema version ci checkspull_request_target
trigger type for driver api and schema version ci checks
Sorry I'm late for this, but my guess is that the problem was with setting the |
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
Yep that is what i thought too! Thanks for reviewing :) |
This is still on hold because i am not sure about the security impact of this change:
|
yep this is my only concern here :/ |
Another solution would be to just make the job fail; i don't like it that much though :/ |
I have reviewed the security properties of this. The PR, as is, is relatively safe because nothing in the workflow actually runs anything that is supplied as code (while the GHA content itself won't run until it's merged because it's picked from the base of the PR not the head). In fact, the workflow only checks if certain files are modified and does not run or otherwise inspect the content. HOWEVER: I propose the following: please @FedeDP add a comment that scares anyone away from adding anything that remotely resembles custom code execution to this workflow and swear you won't do it (cc @Andreagit97 for good measure). If this is needed we'll build a more complex workflow, such as the one that is presented in the linked article https://securitylab.github.com/research/github-actions-preventing-pwn-requests . |
I promise i won't add any magic to these workflows 🤣 |
Signed-off-by: Federico Di Pierro <[email protected]> Co-authored-by: Luca Guerra <[email protected]>
@LucaGuerra should be ok now :) Thank you again! |
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.
Thank you @FedeDP
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, LucaGuerra, Molter73 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area CI
Does this PR require a change in the driver versions?
What this PR does / why we need it:
The PR switches the newly added driver API and SCHEMA version CI checks to use the
pull_request_target
trigger: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.This trigger is capable of commenting on PRs coming from forks:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: