Skip to content

Fix Execute Notebooks CI for fork PRs#67

Open
rryoung98 wants to merge 2 commits into
mainfrom
fix-fork-pr-ci
Open

Fix Execute Notebooks CI for fork PRs#67
rryoung98 wants to merge 2 commits into
mainfrom
fix-fork-pr-ci

Conversation

@rryoung98

Copy link
Copy Markdown
Member

Summary

Fork PRs (e.g. #65) fail the Execute Notebooks checks with 401 Unauthorized because GitHub does not expose repository secrets to pull_request workflow runs triggered from forks — QBRAID_API_KEY arrives empty regardless of the repo secret configuration.

This adds a skip rule: when QBRAID_API_KEY is empty, notebooks that authenticate with the qBraid API (QbraidProvider / QbraidClient) are skipped and reported as SKIPPED (no API key on fork PRs) in the job summary. PRs from branches in this repo still execute them fully since the secret is available there.

Once merged, re-running the failed checks on #65 will pick up the updated workflow (pull_request runs use the merge commit's workflow file).

🤖 Generated with Claude Code

Repo secrets are not exposed to pull_request workflow runs triggered
from forks, so QBRAID_API_KEY is empty and every notebook that
instantiates QbraidProvider fails with a 401. Skip those notebooks
when the key is absent; internal PRs still execute them fully.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 992344e0-2bde-47f0-82c9-e6110a57eca4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-fork-pr-ci

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Fork contributions land in staging first (API notebooks skipped
without the secret), then an internal staging -> main PR executes
the full suite with credentials.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@TheGupta2012

Copy link
Copy Markdown
Member

@rryoung98 if we allow skipping the remote execution on PRs from forks, how will the CI pass before we merge the changes? Maybe I'm missing something here

@TheGupta2012

Copy link
Copy Markdown
Member

Ideally we want some sort of guardrail which allows us (maintainers) to approve fork PRs to be run with creds

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.

2 participants