Skip to content

PS-11254: Gate fork arm64 builds by repo write access#5995

Merged
nogueiraanderson merged 1 commit into
8.0from
PS-11254-fork-gate-fix
Jun 5, 2026
Merged

PS-11254: Gate fork arm64 builds by repo write access#5995
nogueiraanderson merged 1 commit into
8.0from
PS-11254-fork-gate-fix

Conversation

@nogueiraanderson
Copy link
Copy Markdown
Contributor

@nogueiraanderson nogueiraanderson commented Jun 5, 2026

Bug

  • The fork-PR gate used author_association == MEMBER, but the pull_request_target payload reports CONTRIBUTOR for private percona org members, so it skipped them and the fork build never ran.

Fix

  • Add an authorize job that checks repo collaborator permission (write+) via GHA_RUNNER_PAT for fork PRs; dispatch now depends on it.
  • Empirically confirmed: org members resolve to write, non-collaborators to read on this public repo.
  • The job does no checkout and runs in base context, so the trust split is unchanged.

Tickets

- author_association in the pull_request_target payload reports CONTRIBUTOR
  for private percona org members, so the prior gate skipped them (verified
  on PR #5988: the pull_request_target run was skipped)
- replace it with an authorize job that checks repo collaborator permission
  (write+) via GHA_RUNNER_PAT; members resolve to write, non-collaborators
  to read on this public repo (empirically confirmed)
- dispatch now needs authorize and runs only when ok == true

PS-11254
Copy link
Copy Markdown
Collaborator

@inikep inikep left a comment

Choose a reason for hiding this comment

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

LGTM

@nogueiraanderson nogueiraanderson merged commit bc91d07 into 8.0 Jun 5, 2026
26 of 58 checks passed
@nogueiraanderson nogueiraanderson deleted the PS-11254-fork-gate-fix branch June 5, 2026 19:13
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.

2 participants