Skip to content

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

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

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

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for majestic-griffin-10b166 ready!

Name Link
🔨 Latest commit 7dd8b36
🔍 Latest deploy log https://app.netlify.com/projects/majestic-griffin-10b166/deploys/6a5f0d357e39ba0008aa9628
😎 Deploy Preview https://deploy-preview-140--majestic-griffin-10b166.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
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 workflow to avoid running the rebase job on merged fork PRs whose branch names coincidentally match the translation tooling prefixes, preventing avoidable red CI runs due to missing secrets on fork-originated events.

Changes:

  • Add a same-repo head-branch guard (head.repo.full_name == github.repository) to the job-level if: condition.
  • Document the rationale for the guard (fork PRs don’t receive secrets; this prevents a no-token failure mode).

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

@github-actions

Copy link
Copy Markdown

@mmcky
mmcky merged commit b536d7c into main Jul 21, 2026
8 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