ci: open cargo update PRs with the first-party create-pull-request action - #17
Merged
Merged
Conversation
…tion Replaces peter-evans/create-pull-request with tempoxyz/gh-actions actions/create-pull-request and skips the PR steps when cargo update leaves Cargo.lock unchanged (the composite fails on an empty diff).
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
peter-evans/create-pull-requesthandles a token that can push branches and open PRs, and it is a third-party action ahead of the org-only actions policy.tempoxyz/gh-actionsshipsactions/create-pull-requestas its replacement: the commit is created server-side by the STS App and signed by GitHub, nothing is pushed from the runner. voight-kampff already uses it; the same change is proposed for gh-actions' own copy of this workflow.What changed in
cargo-update-pr.ymlcargo update. The composite fails on an empty diff, so the STS and PR steps now run only whenCargo.lockchanged (peter-evans silently did nothing in that case).tempoxyz/gh-actions/actions/create-pull-requestpinned to gh-actionsmainat16356ec5. Inputs map directly:token,branch,title,body,add-paths.author/committerare dropped because the token's actor authors the commit.cargo updatelog remains in the PR body. The unusedcommit_messageoutput was removed.Callers of this reusable workflow need no changes; permissions and the
cargo-update-prSTS policy are unchanged. actionlint and zizmor report no new findings.