Skip to content

feat: resolve the reviewer identity from protected variables - #50

Merged
Pigbibi merged 1 commit into
mainfrom
feat/reviewer-from-variables
Nov 7, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
feat/reviewer-from-variables

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

AI assistance

Qoder agent (Claude) implemented the change and ran the checks below.

What changed

  • scripts/main.cjs: add configuredReviewer(), which reads GOVERNANCE_REVIEWER_APP_ID, GOVERNANCE_REVIEWER_USER_ID and GOVERNANCE_REVIEWER_LOGIN and replaces policy.reviewer when they are set. A partial or invalid set fails closed; an empty set falls back to the committed policy.
  • templates/risk-gate.yml: pass the optional vars.RISK_GATE_REVIEWER_* variables to the evaluate step.
  • README.md: document the override next to the owner override.

This lets a repository whose content rules forbid account identifiers in public source keep the reviewer identity in protected configuration without weakening the identity check: the gate still validates app id, user id and login before trusting a receipt.

How verified

  • node --test scripts/test-main.cjs (9 tests) covers override, policy-without-reviewer and partial-set failure.
  • The full suite passes: test-codex 25, test-gate 60, test-labels 23, test-main 9, test-nudge 6, test-runner 41.
  • actionlint passes on the updated template.
  • The change is backward compatible: without the variables the behavior is unchanged.

Repositories whose content rules keep account identifiers out of public
source can configure the reviewer through RISK_GATE_REVIEWER_APP_ID,
RISK_GATE_REVIEWER_USER_ID and RISK_GATE_REVIEWER_LOGIN, matching the owner
override. A partial set fails closed instead of falling back to the committed
identity, and a policy may omit reviewer when the variables are set.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T14:26:19.835565Z 9fe4658 PR opened
🔒 Security Review ✅ Completed 2026-11-07T14:31:59.695314Z 9fe4658 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 7, 2026
@Pigbibi
Pigbibi merged commit 91252f5 into main Nov 7, 2026
14 of 15 checks passed
@Pigbibi
Pigbibi deleted the feat/reviewer-from-variables branch November 7, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant