Commit 2ac56a2
committed
dev-inf: Use pull_request_target for Claude Code review action
Previously, the Claude Code PR Review GitHub Action used the
pull_request trigger, which runs in the context of the PR branch.
This prevents GitHub from injecting OIDC tokens when the PR comes
from a forked repository, causing authentication failures with
Google Cloud's Workload Identity Federation.
This change updates the workflow to use pull_request_target instead,
which runs in the context of the base repository. This allows OIDC
tokens to be injected even for fork PRs, enabling authentication
with Google Cloud for Vertex AI access.
Our standard git flow requires developers to create PRs from forks,
so this change is necessary for the action to function in our
development workflow. The workflow is safe to run with pull_request_target
because it does not check out the PR branch - all PR content is
fetched safely via the GitHub API using 'gh pr diff' and 'gh pr view'.
Release note: None
Epic: None1 parent f0c3043 commit 2ac56a2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments