ci: skip the Codex review job for Dependabot PRs#127
Merged
Conversation
Dependabot pushes to a same-repo branch, so the existing fork guard (head.repo == repository) does not exclude it — but pull_request runs for Dependabot are withheld repository secrets, so the Codex step fails with no OPENAI_API_KEY and every Dependabot PR shows a spurious "Codex Review" failure. Extend the guard to also skip github.actor == dependabot[bot], mirroring the fork skip for the same no-secret-access reason.
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fix
NitNone. Per-category coverage
Verdictchanges-requested |
github.actor is whoever triggered the run — a maintainer who reopens a Dependabot PR would re-run the secret-less job. pull_request.user.login is the PR author, the stable identity for the no-secret-access skip.
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fixNone. Nit
Per-category coverage
Verdictapprove-with-nits |
heymrbox
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot PRs run the Codex review job (they push same-repo branches, so the fork guard misses them), but
pull_requestwithholds secrets from Dependabot → the job fails with noOPENAI_API_KEY. Six open Dependabot PRs (#87, #88, #111, #117, #122, #123) show a spurious Codex Review failure.Extend the job's
if:guard to also skipdependabot[bot], mirroring the existing fork skip (same "no secret access" rationale). No behavior change for human/same-repo PRs.