Skip to content

fix: verify roll PR ownership in rollInfra#199

Merged
dsanders11 merged 1 commit into
mainfrom
claude/autopatch-scan-7a288aa7-vuln-1896358-7t677n
Jun 25, 2026
Merged

fix: verify roll PR ownership in rollInfra#199
dsanders11 merged 1 commit into
mainfrom
claude/autopatch-scan-7a288aa7-vuln-1896358-7t677n

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

rollInfra() looked up its own existing PR on electron/infra with an unqualified head value. GitHub's REST API expects head in owner:ref-name form, so the unqualified value did not filter and the request returned every open PR; the only remaining discriminator was the title prefix. Any open PR whose title started with build: bump <subject> was then treated as the roller's own PR, letting a third party suppress automated security rolls of CI runner images with a decoy PR.

Owner-qualify the head filter so it only matches branches in the trusted electron/infra repo, and positively verify each candidate PR was authored by the roller App before treating it as our own.

rollInfra() looked up its own existing PR on electron/infra with an
unqualified `head` value. GitHub's REST API expects `head` in
`owner:ref-name` form, so the unqualified value did not filter and the
request returned every open PR; the only remaining discriminator was the
title prefix. Any open PR whose title started with `build: bump <subject>`
was then treated as the roller's own PR, letting a third party suppress
automated security rolls of CI runner images with a decoy PR.

Owner-qualify the `head` filter so it only matches branches in the trusted
electron/infra repo, and positively verify each candidate PR was authored
by the roller App before treating it as our own.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WxGFj3ek5c1RTDgKVzYL3i
@MarshallOfSound MarshallOfSound requested review from a team as code owners June 25, 2026 00:57
@dsanders11 dsanders11 merged commit cfecddc into main Jun 25, 2026
5 checks passed
@dsanders11 dsanders11 deleted the claude/autopatch-scan-7a288aa7-vuln-1896358-7t677n branch June 25, 2026 02:28
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