Skip to content

fix: allow review gate PR comments#10

Merged
JoeyTeng merged 1 commit into
masterfrom
codex/review-gate-pr-write
Apr 25, 2026
Merged

fix: allow review gate PR comments#10
JoeyTeng merged 1 commit into
masterfrom
codex/review-gate-pr-write

Conversation

@JoeyTeng
Copy link
Copy Markdown
Owner

Summary

  • Grant pull-requests: write to the Codex review gate workflow in addition to issues: write.
  • Document that the live GITHUB_TOKEN run still failed to create a PR conversation comment with PullRequests: read.

Why

The default-branch gate now uses github.token, but live PR #8 still failed at POST /issues/8/comments with 403 Resource not accessible by integration. The job permission summary showed Issues: write and PullRequests: read, so this raises PR comment capability to write as well.

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.

Grant pull-requests write permission alongside issues write so the Actions token can create the PR conversation marker comment.

Co-authored-by: Codex (model=GPT-5) <codex@openai.com>
@JoeyTeng JoeyTeng merged commit 6edf196 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