Skip to content

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

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

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
@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for playful-platypus-17d3bb ready!

Name Link
🔨 Latest commit 437cc8f
🔍 Latest deploy log https://app.netlify.com/projects/playful-platypus-17d3bb/deploys/6a5f0d3f5ddb9d0008d73461
😎 Deploy Preview https://deploy-preview-274--playful-platypus-17d3bb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Hardens the “Rebase Translation PRs” GitHub Actions workflow so the rebase job only runs for merged PRs whose head branch is in the same repository (avoiding “fork noise” runs that can’t access secrets and would otherwise fail).

Changes:

  • Add a same-repo guard (head.repo.full_name == github.repository) to the job-level if: condition.
  • Expand inline documentation explaining why the head-repo check exists and what it prevents.

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

@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 21, 2026 06:16 Inactive
@mmcky
mmcky merged commit 1722fbd into main Jul 21, 2026
9 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