Skip to content

CI: removed automatic Claude code review workflow - #791

Merged
mrava87 merged 1 commit into
PyLops:devfrom
mrava87:fix-claude_review
Aug 14, 2026
Merged

CI: removed automatic Claude code review workflow#791
mrava87 merged 1 commit into
PyLops:devfrom
mrava87:fix-claude_review

Conversation

@mrava87

@mrava87 mrava87 commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes .github/workflows/claude-code-review.yml, the workflow that ran a Claude review automatically on every pull_request event. Code reviews are now on-request only: mention @claude in a PR or issue comment and claude.yml handles it.

Why

The automatic workflow could never work with PyLops' fork-based contribution flow. For pull_request events originating from a fork, GitHub:

  • gives the job a read-only GITHUB_TOKEN,
  • never sets ACTIONS_ID_TOKEN_REQUEST_URL, so id-token: write has no effect and OIDC token retrieval fails, and
  • withholds repository secrets such as CLAUDE_CODE_OAUTH_TOKEN.

It failed on #790 with Could not fetch an OIDC token, and would have failed the same way on every external contributor's PR.

The issue_comment trigger in claude.yml is unaffected: it runs in the base-repository context from the default branch, where both OIDC and secrets are available. This was confirmed working on fork PR #790 in this run. As a bonus, the action only responds to commenters with write access by default, so external contributors can't trigger it unprompted.

🤖 Generated with Claude Code

Reviews are now on-request only, by mentioning @claude in a PR or issue
comment (handled by claude.yml). The automatic pull_request-triggered
review could never work for PyLops' fork-based flow anyway: GitHub gives
fork PR jobs a read-only token, never sets ACTIONS_ID_TOKEN_REQUEST_URL
so OIDC fails, and withholds repository secrets. The issue_comment
trigger runs in the base-repo context, where both are available.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@mrava87 mrava87 changed the title ci: removed automatic Claude code review workflow CI: removed automatic Claude code review workflow Aug 14, 2026
@mrava87 mrava87 self-assigned this Aug 14, 2026
@mrava87 mrava87 added the CI Test suite and CI label Aug 14, 2026
@mrava87
mrava87 merged commit 0ed0272 into PyLops:dev Aug 14, 2026
24 checks passed
@mrava87
mrava87 deleted the fix-claude_review branch August 14, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Test suite and CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant