Skip to content

fix: force review gate to use Actions token#9

Merged
JoeyTeng merged 1 commit into
masterfrom
codex/review-gate-use-github-token
Apr 25, 2026
Merged

fix: force review gate to use Actions token#9
JoeyTeng merged 1 commit into
masterfrom
codex/review-gate-use-github-token

Conversation

@JoeyTeng
Copy link
Copy Markdown
Owner

Summary

  • Force the Codex review gate workflow to use github.token instead of the optional CODEX_REVIEW_GATE_TOKEN secret.
  • Update docs to make GitHub Actions the expected status/comment source.
  • Record the first live gate failure from PR test: exercise Codex review gate #8: the workflow triggered and wrote status, but comment creation failed with 403 Resource not accessible by integration.

Why

The gate marker must be created by github-actions[bot]. The optional secret path can select a token with mismatched permissions or the wrong identity.

Validation

  • actionlint .github/workflows/codex-review-gate.yml
  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/codex-review-gate.yml")'\n- node --check .github/scripts/codex-review-gate.mjs\n- git diff --check\n\nNote: the current default-branch gate may fail on this PR until this fix is merged, because the failure is in the default-branch workflow source.

Avoid selecting CODEX_REVIEW_GATE_TOKEN so marker comments are created by github-actions[bot] and use the workflow-granted issue comment permission.

Co-authored-by: Codex (model=GPT-5) <codex@openai.com>
@JoeyTeng JoeyTeng merged commit d191db5 into master Apr 25, 2026
2 of 4 checks 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