Skip to content

fix(codex-pr-review): embed review prompt, drop cross-repo checkout - #19

Merged
aprilb merged 1 commit into
mainfrom
fix/embed-review-prompt
Jul 16, 2026
Merged

fix(codex-pr-review): embed review prompt, drop cross-repo checkout#19
aprilb merged 1 commit into
mainfrom
fix/embed-review-prompt

Conversation

@aprilb

@aprilb aprilb commented Jul 16, 2026

Copy link
Copy Markdown
Member

What

Embed the shared review prompt in codex-pr-review.yml as base64 (PROMPT_B64) and decode it at runtime, instead of checking it out cross-repo from ci-workflows.

Why

The old step checked out the prompt from ci-workflows using the calling repo's GITHUB_TOKEN. That works here (modsy/ci-workflows is public) but fails on an internal repo: a consumer's job token can resolve the reusable workflow but cannot fetch this repo, so every consumer PR red-Xed at "Check out shared review prompt" before the reviewer ran. This is what is currently breaking all Product Org (Atlas) consumers, and a parity sync had reintroduced the checkout that an earlier commit fixed by embedding.

Guard against drift

The checkout was the single-source-of-truth approach, so embedding reintroduces a drift risk (prompt in two places). New check-prompt-embed.yml fails CI if PROMPT_B64 ever stops matching the prompt file, so they can never silently diverge.

Parity

Matches product-org-len/ci-workflows PR #8 byte-for-byte (same base64). Keeps the two ci-workflows repos identical.

Issue: none (CI infra).

The reviewer checked out the shared prompt from ci-workflows using the calling
repo\x27s GITHUB_TOKEN. That works here (public) but fails on an internal repo,
where a consumer token cannot fetch this repo, so every consumer PR red-Xed at
the checkout step. Embed the prompt as base64 (PROMPT_B64) and decode at
runtime instead: no cross-repo checkout, works regardless of visibility, and a
PR still cannot alter what the credentialed reviewer runs.

Add check-prompt-embed.yml so the embedded copy can never silently drift from
the prompt file (the single-source-of-truth concern that the checkout approach
was solving). Keeps parity with product-org-len/ci-workflows (PR #8).
@aprilb
aprilb merged commit 533edfe into main Jul 16, 2026
1 check passed
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.

1 participant