Skip to content

Commit 3be1bb3

Browse files
xuanyang15copybara-github
authored andcommitted
fix: use pull_request_target event as the trigger of PR triaging agent
GitHub workflows triggered by `pull_request` events from forked repositories do not have access to secrets by default due to security considerations. PiperOrigin-RevId: 789011890
1 parent 7c9b0a2 commit 3be1bb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: ADK Pull Request Triaging Agent
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened, edited]
66

77
jobs:
@@ -33,6 +33,6 @@ jobs:
3333
OWNER: 'google'
3434
REPO: 'adk-python'
3535
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
36-
INTERACTIVE: ${{ secrets.PR_TRIAGE_INTERACTIVE }}
36+
INTERACTIVE: ${{ vars.PR_TRIAGE_INTERACTIVE }}
3737
PYTHONPATH: contributing/samples
3838
run: python -m adk_pr_triaging_agent.main

0 commit comments

Comments
 (0)