Skip to content

ci(review): Claude review workflow fails on fork PRs with no auth secret #825

@thepastaclaw

Description

@thepastaclaw

Summary

The Claude review (label: claudius-review) workflow is failing on fork-based PRs before repository checkout because no Claude auth secret is available in the pull_request context.

Evidence

Both failures show the same pattern:

  • Secret source: None
  • the job exits before checkout/review with:
    • Either 'anthropic_api_key' or 'claude_code_oauth_token' must be provided.

Diagnosis

This is not caused by the application code in those PRs. The failure happens before the repo is even checked out, so the relevant issue is workflow design / secrets availability for fork PRs.

Likely root cause:

  • the review workflow runs on pull_request
  • the PRs come from a fork (thepastaclaw/dash-evo-tool -> dashpay/dash-evo-tool)
  • GitHub does not expose repository secrets in that context, so the Claude review action cannot authenticate

Suggested fixes

Any of these would resolve the false-red required check pattern:

  1. Skip the review job when the needed secret/token is unavailable
  2. Avoid making this workflow a required status for fork PRs
  3. Rework the workflow to a safe pull_request_target-based design if maintainers actually want secret-backed review on forks

Right now the result is a repo-level CI false negative on otherwise-passing PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions