Skip to content

Pass the protected reviewer key through the caller secret contract - #3531

Merged
jonathanKingston merged 2 commits into
mainfrom
codex/fix-review-environment-secret
Oct 4, 2026
Merged

jonathanKingston merged 2 commits into
mainfrom
codex/fix-review-environment-secret

Conversation

@jonathanKingston

@jonathanKingston jonathanKingston commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

The Actions migration omitted COPSE_REVIEW_OPENROUTER_API_KEY from the Copse caller's named secret mapping. The reusable model job references the key under copse-review-models, but receives an empty value and stops before a model call. Add the missing name to the caller contract as an empty placeholder. The protected job continues to resolve the value from its existing environment. Check that every secret referenced by the protected model job is explicitly included by the caller and that the dedicated key's caller value stays empty.

Historical comparison: the old full-review run received the environment key and published on PR #3504; the new reusable run failed with an empty key on the same head. actions/runner#4453 reports matching environment-secret behavior at the reusable-workflow boundary.

Risk and review

Medium: this changes a credential contract. The patch adds one explicitly named key already declared by the reusable workflow and referenced only by its protected model job. The key remains in the existing environment; grounding still has no secret references.

Validation

  • The new contract test fails on the original caller with the missing dedicated key.
  • Focused reviewer-action and CI-workflow invariant suites: 127 passed after the patch.
  • Actionlint for the caller and reusable workflow: passed.
  • Full local static gate: passed (syntax, TypeScript, type coverage, lint, formatting, site freshness, dead code, test oracle, E2E exclusions).
  • Full local pnpm run check: static gates passed; units finished with 13,059 passed, 18 failed, 9 cancelled and 22 skipped. Remaining failures are in local runtime/sandbox/home/process fixtures (including missing socat and read-only home paths); this is not a green full local gate. All reviewer/workflow contract tests passed.
  • GitHub CI on the final head: CI Passed succeeded. Static prechecks, selected reviewer-action units, and the real reviewer-container boundary check passed; heavy build/E2E jobs were intentionally skipped by the CI plan. CLA and Screenshot review also succeeded.
  • Final source: 8276594ec4773485fde1d636196eeb2dfe906db2.
  • A fresh rerun of the old full-review workflow succeeded and received the existing environment key, confirming that the environment remains functional.

Remaining work

GitHub environment-secret resolution and new review publication must be verified after this caller change is merged onto the trusted default branch. Local contract checks cannot establish delivery of an encrypted GitHub secret. Full local units retain the workspace limitations listed above; required PR CI has passed. This draft does not claim end-to-end completion.


Note

High risk
This changes the GitHub Actions secret-passing contract for the protected reviewer model job, a secrets-handling surface, though the caller supplies an empty value for this key.

Overview

  • The Copse review-trigger workflow now declares COPSE_REVIEW_OPENROUTER_API_KEY by name with an empty value, leaving its real value to be resolved in the protected model job.
  • A reviewer-actions test checks that the caller names every secret referenced by the reusable reviewer workflow and verifies the OpenRouter key is passed as an empty value.

Summary by Copse Reviewer for commit 8276594. copse-review 0.1.0

github-actions Bot added a commit that referenced this pull request Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

🖥️ PR preview

@jonathanKingston
jonathanKingston marked this pull request as ready for review October 4, 2026 20:07
@jonathanKingston
jonathanKingston enabled auto-merge (squash) October 4, 2026 20:07
@jonathanKingston
jonathanKingston merged commit f9ad190 into main Oct 4, 2026
@jonathanKingston
jonathanKingston deleted the codex/fix-review-environment-secret branch October 4, 2026 20:19
github-actions Bot added a commit that referenced this pull request Oct 4, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
copse-review-models — 8276594e Deployed Oct 4, 2026 by jonathanKingston
github-pages — 8276594e Deployed Oct 4, 2026 by jonathanKingston
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