Skip to content

ci: replace peter-evans/create-pull-request with gh pr create#5182

Draft
npalm wants to merge 1 commit into
mainfrom
replace-peter-evans-create-pr
Draft

ci: replace peter-evans/create-pull-request with gh pr create#5182
npalm wants to merge 1 commit into
mainfrom
replace-peter-evans-create-pr

Conversation

@npalm

@npalm npalm commented Jun 17, 2026

Copy link
Copy Markdown
Member

Replaces the peter-evans/create-pull-request action in .github/workflows/update-docs.yml with a shell step that uses the gh CLI to open the PR and the GitHub GraphQL API to push a signed commit on a freshly created branch.

Addresses the code scanning finding raised by zizmor's superfluous-actions audit.

Behavior preserved:

  • Only runs on main for the github-aws-runners org.
  • Creates a uniquely named update-docs-<random> branch.
  • Commits via the GraphQL createCommitOnBranch mutation so the commit is signed/verified by GitHub.
  • Opens a PR against the current branch (main).

Addresses zizmor superfluous-actions finding by replacing the
peter-evans/create-pull-request action with a shell step that uses
the gh CLI to create the PR and the GitHub GraphQL API to push a
signed commit on a new branch.

Ref: https://docs.zizmor.sh/audits/#superfluous-actions
@npalm npalm requested a review from a team as a code owner June 17, 2026 21:20
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • .github/workflows/update-docs.yml

@npalm npalm marked this pull request as draft June 17, 2026 21:22
@npalm

npalm commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

The intend was not to make it much complexer, needs a bit ore time to check the AI suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant