Skip to content

Rebase: require a same-repo head branch (fork noise guard)#75

Merged
mmcky merged 1 commit into
mainfrom
rebase-fork-guard
Jul 21, 2026
Merged

Rebase: require a same-repo head branch (fork noise guard)#75
mmcky merged 1 commit into
mainfrom
rebase-fork-guard

Conversation

@mmcky

@mmcky mmcky commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

One-line hardening from Copilot's review of the PAT rollout (.fr#17 comment, applied estate-wide): the rebase job now requires a same-repo head branch. Fork PRs never receive secrets — the PAT was not exposed — but a merged fork PR whose branch happened to match a translation prefix would start the job with an empty token and fail red; it is now skipped. Mirrors action-translation#130 and the harness copies.

🤖 Generated with Claude Code

Mirrors action-translation#130; see the PAT rollout review.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 21, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Hardens the “Rebase Translation PRs” GitHub Actions workflow to avoid running (and failing) on merged fork PRs whose branch names coincidentally match the translation tooling prefixes, by requiring the PR head branch to originate from the same repository.

Changes:

  • Add a same-repo guard to the job-level if: so the rebase job only runs when pull_request.head.repo.full_name == github.repository.
  • Expand inline workflow comments to document why the guard exists (secrets are not exposed; this prevents noisy red failures).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mmcky
mmcky merged commit d13992d into main Jul 21, 2026
3 checks passed
@mmcky
mmcky deleted the rebase-fork-guard branch July 21, 2026 06:17
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