workflows/vendor-gems: stop PR auto-pushes.#22077
Merged
MikeMcQuaid merged 1 commit intomainfrom Apr 24, 2026
Merged
Conversation
- keep `pull_request` runs read-only so vendored gem updates do not rely on commit credentials in an untrusted context - keep the out-of-sync failure so maintainers can rerun with `workflow_dispatch` when a signed bot commit is needed
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the vendor-gems GitHub Actions workflow so that pull_request executions remain read-only and never attempt to commit/push changes back to the PR branch. Pushing updates is limited to explicit workflow_dispatch runs, using an app token, keeping untrusted PR contexts free of commit credentials.
Changes:
- Reduce workflow token permissions from
contents: writetocontents: read. - Remove the Dependabot-specific auto-checkout/commit/push behavior on
pull_request; those steps now run only onworkflow_dispatch. - Require the GitHub App token for the push step (no fallback to
secrets.GITHUB_TOKEN).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bevanjkay
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.
pull_requestruns read-only so vendored gem updates do not rely on commit credentials in an untrusted contextworkflow_dispatchwhen a signed bot commit is neededbrew lgtm(style, typechecking and tests) with your changes locally?Used OpenAI Codex with manual review.