Skip to content

fix(ci): load rebase policy from immutable main - #167

Merged
incognitojam merged 1 commit into
mainfrom
t3code/fix-nightly-rebase-scripts
Aug 16, 2026
Merged

fix(ci): load rebase policy from immutable main#167
incognitojam merged 1 commit into
mainfrom
t3code/fix-nightly-rebase-scripts

Conversation

@incognitojam

Copy link
Copy Markdown
Collaborator

What Changed

Load the upstream rebase policy script from the immutable main snapshot when running a source_ref nightly rebase. The workflow now validates that both required policy scripts exist on main, writes the rebase script to a temporary file, and sources it from there.

Direct runs continue to use the repository's checked-in rebase script.

Why

A stale source_ref could otherwise control or roll back the rebase policy script. Loading the script from immutable main ensures nightly rebases use the current trusted policy and fail clearly when main is missing the required script.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

- Ensure source_ref runs use both policy scripts from the fetched main snapshot
- Prevent stale source refs from bypassing or rolling back rebase checks
@incognitojam
incognitojam enabled auto-merge (squash) August 16, 2026 10:51
@incognitojam
incognitojam merged commit 4e2683b into main Aug 16, 2026
8 of 9 checks passed
@incognitojam
incognitojam deleted the t3code/fix-nightly-rebase-scripts branch August 16, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant