Skip to content

fix: make missing PR review backend opt-in advisory - #15

Merged
Pigbibi merged 1 commit into
mainfrom
codex/fix-reusable-pr-review
Jul 5, 2026
Merged

fix: make missing PR review backend opt-in advisory#15
Pigbibi merged 1 commit into
mainfrom
codex/fix-reusable-pr-review

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary\n- add an explicit reusable-workflow input for caller repos that do not configure an AI review backend\n- keep the default behavior fail-closed for high-risk review infrastructure errors\n- only turn an unconfigured backend into a human-review note when the caller opts in\n\n## Verification\n- actionlint .github/workflows/*.yml\n- python3 -m ruff check .\n- python3 -m pytest tests -q\n- node --test cloudflare/codex-audit-proxy/tests/index.test.mjs\n- node --test cloudflare/ai-gateway-dash/tests/index.test.mjs

@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🤖 Codex PR Review

Merge allowed: No issues found


Review by Codex PR Review bot • PR

@Pigbibi
Pigbibi force-pushed the codex/fix-reusable-pr-review branch from c2df65e to 804e899 Compare July 4, 2026 23:54
@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2df65ec13

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/codex_pr_review.yml Outdated
Comment on lines +66 to +67
repository: ${{ inputs.bridge_repository || 'QuantStrategyLab/AIAuditBridge' }}
ref: ${{ inputs.bridge_ref || 'main' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor the pinned workflow revision when checking out scripts

For reusable callers that pin this workflow to a SHA/tag, or for reruns after main has advanced, this now checks out the runner script from AIAuditBridge@main unless every caller passes bridge_ref. That means the executed Python no longer matches the trusted workflow revision being invoked and can unexpectedly run newer code with the inherited GitHub/API tokens; it also breaks the existing tests/test_run_codex_pr_review.py::CodexPrReviewWorkflowTest expectation that the bridge checkout follows job.workflow_repository/job.workflow_sha. Default this checkout back to the called workflow/base commit, and only override it explicitly when needed.

Useful? React with 👍 / 👎.

@Pigbibi
Pigbibi force-pushed the codex/fix-reusable-pr-review branch from 804e899 to 32dfdf4 Compare July 5, 2026 00:03
@Pigbibi Pigbibi changed the title fix: stabilize reusable Codex PR review workflow fix: avoid red PR review runs without AI backend Jul 5, 2026
@cursor

cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Pigbibi
Pigbibi force-pushed the codex/fix-reusable-pr-review branch from 32dfdf4 to dd5c515 Compare July 5, 2026 00:06
@Pigbibi Pigbibi changed the title fix: avoid red PR review runs without AI backend fix: make missing PR review backend opt-in advisory Jul 5, 2026
@cursor

cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32dfdf4eec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/run_codex_pr_review.py Outdated
Comment on lines +1005 to +1007
if _review_backend_is_unconfigured(exc):
print("::warning::Codex review backend is not configured; leaving human-review note without failing the workflow.")
return 0

This comment was marked as off-topic.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi force-pushed the codex/fix-reusable-pr-review branch from dd5c515 to b92e244 Compare July 5, 2026 00:08
@cursor

cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Pigbibi
Pigbibi merged commit 42d131c into main Jul 5, 2026
4 checks passed
@Pigbibi
Pigbibi deleted the codex/fix-reusable-pr-review branch July 5, 2026 00:10
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