Replace create-pull-request with github-script - #74
Merged
Conversation
chen-anders
force-pushed
the
remove-create-pr-dependency
branch
5 times, most recently
from
April 6, 2026 07:15
2dadfd4 to
3252b4e
Compare
chen-anders
force-pushed
the
remove-create-pr-dependency
branch
from
April 6, 2026 07:15
3252b4e to
5e298ef
Compare
stevebeattie
self-requested a review
April 7, 2026 04:56
Member
|
do you have an example of a PR that was generated using this change? also need to fix a conflict |
cpanato
reviewed
Apr 22, 2026
Co-authored-by: Carlos Tadeu Panato Junior <ctadeu@gmail.com> Signed-off-by: Anders Chen <anders@wistia.com>
Signed-off-by: Anders Chen <anders@wistia.com>
Contributor
Author
|
I can put up a public repo example in the next day or two but we've been using our fork with this change in a number of our own internal repos. |
Contributor
Author
cpanato
approved these changes
Apr 24, 2026
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.
Similar to #73, this is a PR to replace
peter-evans/create-pull-requestwith an first-party GitHub maintainedactions/github-scriptequivalent. I figured that most orgs probably have theactions/github-scriptworkflow step allowlisted.Context: In our own org especially after the Trivy supply chain attacks, we've been wanting to be more restrictive with what 3rd-party GitHub actions can run on our workflows. (related issue: #58)
Disclaimer: Generated via Claude Code
Remove dependency on peter-evans/create-pull-request by using actions/github-script to implement PR creation directly.
Changes:
Compatible with restricted GitHub Enterprise environments where community actions require whitelisting.