Skip to content

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

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

Rebase: require a same-repo head branch (fork noise guard)#18
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:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the rebase-translations GitHub Actions workflow by preventing the job from running on merged pull requests whose head branch comes from a fork, avoiding a predictable “empty secret” failure mode.

Changes:

  • Adds a same-repository head-branch guard to the rebase job’s if: condition.
  • Documents why the guard is needed and why it does not change secret-exposure risk.

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

@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-18--verdant-toffee-3261a8.netlify.app

Commit: a3a32bd


Build Info

@mmcky
mmcky merged commit 212fda1 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