-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update Jenkins job to require maintainer trigger #1238
Update Jenkins job to require maintainer trigger #1238
Conversation
Signed-off-by: Tanner Lewis <[email protected]>
Signed-off-by: Tanner Lewis <[email protected]>
Signed-off-by: Tanner Lewis <[email protected]>
bf718f4
to
607bf5a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1238 +/- ##
=========================================
Coverage 80.39% 80.39%
Complexity 3094 3094
=========================================
Files 424 424
Lines 15742 15742
Branches 1066 1066
=========================================
Hits 12655 12655
Misses 2435 2435
Partials 652 652
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
This approach won't run these tests when non-maintainers are making changes, that doesn't seem correct. Please check with @opensearch-project/engineering-effectiveness for if we have an incorrect setting in GitHub Action system
I'm pretty sure this setting is already enabled, since all of our other Github actions require maintainer approval before they will run. This one uses |
A working example in the ml repo might be good to try: Thanks. |
Description
Require maintainer trigger on Jenkins jobs
pull_request_target
events are special: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repositoryWith changes...
When a maintainer creates a PR, pushes a change, or retries the Jenkins action on their own PR, the action will execute as normal:
However, when a non-maintainer performs any action that would trigger the Jenkins action (same as list above), the action will fail early with error message:
Issues Resolved
N/A
Testing
Personal fork testing
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.