Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/discussion_answering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ jobs:
INTERACTIVE: 0
PYTHONPATH: contributing/samples/adk_team
run: |
# Write discussion data to temporary file to avoid secret masking issues
cat > /tmp/discussion.json << 'EOF'
${{ toJson(github.event.discussion) }}
EOF
python -m adk_answering_agent.main --discussion-file /tmp/discussion.json
# Security fix: Do not pass raw event data to agent prompt.
# Pass only the discussion number; agent fetches content via GitHub API.
python -m adk_answering_agent.main --discussion_number ${{ github.event.discussion.number || github.event.comment.discussion.number }}
4 changes: 2 additions & 2 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
INTERACTIVE: 0
EVENT_NAME: ${{ github.event_name }} # 'issues', 'schedule', etc.
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
# ISSUE_TITLE removed: fetch via GitHub API in agent to prevent prompt injection
# ISSUE_BODY removed: fetch via GitHub API in agent to prevent prompt injection
ISSUE_COUNT_TO_PROCESS: '3' # Process 3 issues at a time on schedule
PYTHONPATH: contributing/samples/adk_team
run: python -m adk_triaging_agent.main
Loading