Skip to content

fix(ci): use pull_request_target for fork PR reviews#5544

Merged
wjones127 merged 1 commit intolance-format:mainfrom
wjones127:ci/claude-fork-fix
Dec 18, 2025
Merged

fix(ci): use pull_request_target for fork PR reviews#5544
wjones127 merged 1 commit intolance-format:mainfrom
wjones127:ci/claude-fork-fix

Conversation

@wjones127
Copy link
Copy Markdown
Contributor

The pull_request event runs in the fork's context, which doesn't have
access to repository secrets. Switch to pull_request_target so the
workflow runs in the base repo context and can access CLAUDE_CODE_OAUTH_TOKEN.

This enables the Claude Code Review workflow to work on PRs from forks.

🤖 Generated with Claude Code

The pull_request event runs in the fork's context, which doesn't have
access to repository secrets. Switch to pull_request_target so the
workflow runs in the base repo context and can access CLAUDE_CODE_OAUTH_TOKEN.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Dec 18, 2025
@wjones127 wjones127 marked this pull request as ready for review December 18, 2025 20:36
@wjones127 wjones127 merged commit a018e0d into lance-format:main Dec 18, 2025
4 checks passed
wjones127 added a commit to wjones127/lance that referenced this pull request Dec 30, 2025
The `pull_request` event runs in the fork's context, which doesn't have
access to repository secrets. Switch to `pull_request_target` so the
workflow runs in the base repo context and can access
`CLAUDE_CODE_OAUTH_TOKEN`.

This enables the Claude Code Review workflow to work on PRs from forks.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
The `pull_request` event runs in the fork's context, which doesn't have
access to repository secrets. Switch to `pull_request_target` so the
workflow runs in the base repo context and can access
`CLAUDE_CODE_OAUTH_TOKEN`.

This enables the Claude Code Review workflow to work on PRs from forks.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants