Skip to content

Commit 94a6307

Browse files
committed
fix(ci): add repository check to prevent workflows from running on forks
Add if: github.repository == 'google/adk-python' guard to workflows that lack this protection: v2-sync, issue-monitor, and copybara-pr-handler. These workflows use secrets unavailable on forks, causing daily failures.
1 parent 5578772 commit 94a6307

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/copybara-pr-handler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717

1818
jobs:
1919
close-imported-pr:
20+
if: github.repository == 'google/adk-python'
2021
runs-on: ubuntu-latest
2122
permissions:
2223
pull-requests: write

.github/workflows/issue-monitor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030

3131
jobs:
3232
sweep-spam:
33+
if: github.repository == 'google/adk-python'
3334
runs-on: ubuntu-latest
3435
timeout-minutes: 120
3536
permissions:

.github/workflows/v2-sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313

1414
jobs:
1515
sync:
16+
if: github.repository == 'google/adk-python'
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)