Skip to content

Commit 425b84f

Browse files
authored
ci: skip the Codex review job for Dependabot PRs (#127)
1 parent ef02d5d commit 425b84f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/codex-review.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ jobs:
2525
codex:
2626
name: Codex Review
2727
runs-on: ubuntu-latest
28-
# Skip forks (no secret access) so they don't show a spurious failure.
29-
if: github.event.pull_request.head.repo.full_name == github.repository
28+
# Skip forks and Dependabot (neither gets secret access) so they don't show
29+
# a spurious failure. Dependabot pushes to a same-repo branch, so the fork
30+
# check below does not catch it — pull_request runs for Dependabot are
31+
# withheld secrets, so the Codex step would fail with no OPENAI_API_KEY.
32+
if: >-
33+
github.event.pull_request.head.repo.full_name == github.repository &&
34+
github.event.pull_request.user.login != 'dependabot[bot]'
3035
permissions:
3136
contents: read
3237
outputs:

0 commit comments

Comments
 (0)