Skip to content

chore: rename the dependency upgrade repair workflow - #10324

Merged
cryptodev-2s merged 3 commits into
mainfrom
chore/rename-repair-workflow
Sep 21, 2026
Merged

cryptodev-2s merged 3 commits into
mainfrom
chore/rename-repair-workflow

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Explanation

Renames the workflow file and its name to repair-dependency-upgrade-pull-requests.yml and Repair dependency upgrade pull requests. Once #10322 lands it repairs Renovate pull requests too, so repair-dependabot-pull-requests.yml is misleading.

Important

Depends on consensys-vertical-apps/token-exchange-service#184. The token exchange policy globs on the workflow path, so renaming the file before that merges makes the token request fail and the job never starts. #184 matches both names, so after it merges the two can land in any order.

Merge after #10322, which edits the same file. #10322 is already queued with the interim name Repair dependency update pull requests, so this rebases onto that.

References

Depends on consensys-vertical-apps/token-exchange-service#184. Follows #10322. Part of WPC-1161.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Cosmetic workflow metadata only; behavior is unchanged in this diff.

Overview
Renames the GitHub Actions workflow’s name from Repair dependency update pull requests to Repair dependency upgrade pull requests, matching the renamed workflow file and the fact that the job will repair Renovate PRs as well as Dependabot (not just “update” wording).

No job steps, triggers, or permissions change in this diff—only the workflow title shown in the Actions UI.

Reviewed by Cursor Bugbot for commit f0d7829. Bugbot is set up for automated code reviews on this repo. Configure here.

@cryptodev-2s
cryptodev-2s marked this pull request as ready for review September 21, 2026 15:50
@cryptodev-2s
cryptodev-2s requested a review from a team as a code owner September 21, 2026 15:50
@cryptodev-2s
cryptodev-2s deployed to default-branch September 21, 2026 15:50 — with GitHub Actions Active
@cryptodev-2s cryptodev-2s self-assigned this Sep 21, 2026
Comment thread .github/workflows/repair-dependency-upgrade-pull-requests.yml
@cryptodev-2s cryptodev-2s changed the title chore: rename the dependency update repair workflow chore: rename the dependency upgrade repair workflow Sep 21, 2026
@cryptodev-2s
cryptodev-2s force-pushed the chore/rename-repair-workflow branch 2 times, most recently from 27e1d2e to 8136a5f Compare September 21, 2026 17:06
@cryptodev-2s
cryptodev-2s requested a review from mcmire September 21, 2026 17:06
@cryptodev-2s
cryptodev-2s force-pushed the chore/rename-repair-workflow branch from 8136a5f to f0d7829 Compare September 21, 2026 17:06

@mcmire mcmire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cryptodev-2s
cryptodev-2s added this pull request to the merge queue Sep 21, 2026
Comment thread .github/workflows/repair-dependency-upgrade-pull-requests.yml
@Mrtenz
Mrtenz removed this pull request from the merge queue due to a manual request Sep 21, 2026
@cryptodev-2s
cryptodev-2s added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 2a73d0d Sep 21, 2026
337 checks passed
@cryptodev-2s
cryptodev-2s deleted the chore/rename-repair-workflow branch September 21, 2026 17:56
pull Bot pushed a commit to Reality2byte/core that referenced this pull request Sep 21, 2026
## Explanation

The branch prefix alone was too loose. `actions/checkout` here passes
`ref:` with no `repository:`, so it always checks out from
`MetaMask/core`. A fork pull request whose head branch happens to be
named after an existing `renovate/` branch would pass the gate, mint a
write token through the exchange, and push to that branch. No attacker
code runs, since the tree comes from this repo, but an outsider should
not be able to trigger it at all.

Requiring `metamask-ci[bot]` as the author closes it, and nobody can
impersonate a bot login. Verified against the real payloads: Renovate
pull requests are `user.login = metamask-ci[bot]`, `type = Bot`, and
Dependabot ones are `dependabot[bot]`.

Raised by Mrtenz on MetaMask#10324.

## References

Follows MetaMask#10324. Part of WPC-1161.

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> One-line workflow gate change with no app runtime impact; wrong bot
matching would only stop repairs on Renovate PRs.
> 
> **Overview**
> **Tightens who can run the dependency-upgrade repair workflow** so it
no longer keys off a `renovate/` branch name alone.
> 
> The job’s `if` condition now runs for **Dependabot**
(`dependabot[bot]`) as before, or for **Renovate** only when the PR
author is `metamask-ci[bot]` **and** the head ref still starts with
`renovate/`. That blocks fork (or other) PRs that reused a `renovate/…`
branch name from triggering OIDC token exchange and pushes to the head
branch, while keeping legitimate Renovate automation unchanged.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
4923adb. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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.

3 participants