Skip to content

Commit cf7566e

Browse files
absorbbclaude
andcommitted
fix(ai-review): allow github-actions[bot] PRs to be reviewed
codex-action's write-access check queries the collaborators API, which returns permission 'none' for the github-actions[bot] actor and aborts the run with "Actor 'github-actions[bot]' is not permitted to run this action". This blocked AI review on the automated security-fix PRs, which are opened under the repo's own GITHUB_TOKEN (actor github-actions[bot]). Pass allow-bots: true so codex-action whitelists the GitHub-owned github-actions[bot] specifically. The review still posts via the AI_CODE_REVIEW app token, which already has PR write — the actor check was the only gate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2cf7200 commit cf7566e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/ai-review.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,13 @@ jobs:
295295
effort: high
296296
codex-home: .github/codex/home
297297
sandbox: danger-full-access
298+
# Allow reviews on PRs opened by github-actions[bot] (e.g. the
299+
# automated security-fix PRs). codex-action's write-access check
300+
# queries the collaborators API, which returns 'none' for the bot
301+
# actor and aborts the run. allow-bots whitelists the GitHub-owned
302+
# github-actions[bot] specifically — it runs under the repo's own
303+
# token, so it is repo-internal automation, not an external actor.
304+
allow-bots: true
298305

299306
- name: "✅ Validate review output"
300307
if: ${{ steps.resolve-target.outputs.review_mode == 'commit' }}

0 commit comments

Comments
 (0)