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
This commit is contained in:
Xuan Yang
2025-07-30 13:04:38 -07:00
committed by Copybara-Service
parent 7c9b0a2567
commit 3be1bb37d9
+2 -2
View File
@@ -1,7 +1,7 @@
name: ADK Pull Request Triaging Agent
on:
pull_request:
pull_request_target:
types: [opened, reopened, edited]
jobs:
@@ -33,6 +33,6 @@ jobs:
OWNER: 'google'
REPO: 'adk-python'
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
INTERACTIVE: ${{ secrets.PR_TRIAGE_INTERACTIVE }}
INTERACTIVE: ${{ vars.PR_TRIAGE_INTERACTIVE }}
PYTHONPATH: contributing/samples
run: python -m adk_pr_triaging_agent.main