Skip to content

Commit 71b2b22

Browse files
authored
feat: test approving PRs as claude for dependabot reviews (#87)
1 parent 6320761 commit 71b2b22

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/review.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: Code Review
33
on:
44
pull_request:
55
types: [opened, synchronize]
6+
pull_request_target:
7+
types: [opened, synchronize]
68

79
jobs:
810
review:
9-
if: github.actor != 'dependabot[bot]'
11+
if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
1012
uses: ./.github/workflows/claude-code-review.yml
1113
secrets:
1214
GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
@@ -15,10 +17,11 @@ jobs:
1517
CLOUD_ML_REGION: ${{ secrets.CLOUD_ML_REGION }}
1618

1719
review-dependency-bump:
18-
if: github.actor == 'dependabot[bot]'
19-
uses: ./.github/workflows/claude-code-dependency-review.yml
20+
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
21+
uses: scality/workflows/.github/workflows/claude-code-dependency-review.yml@feature/auth-as-claude-app
2022
secrets:
2123
GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
2224
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
2325
ANTHROPIC_VERTEX_PROJECT_ID: ${{ secrets.ANTHROPIC_VERTEX_PROJECT_ID }}
2426
CLOUD_ML_REGION: ${{ secrets.CLOUD_ML_REGION }}
27+
ACTIONS_APP_PRIVATE_KEY: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)