fix(ci): add repository check to prevent workflows from running on forks#5391
Open
Wu-Jiayang wants to merge 1 commit intogoogle:mainfrom
Open
fix(ci): add repository check to prevent workflows from running on forks#5391Wu-Jiayang wants to merge 1 commit intogoogle:mainfrom
Wu-Jiayang wants to merge 1 commit intogoogle:mainfrom
Conversation
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.
Collaborator
|
Response from ADK Triaging Agent Hello @Wu-Jiayang, thank you for creating this PR! Could you please include a This information will help reviewers to review your PR more efficiently. Thanks! |
Author
|
Hi @adk-bot, I've added a Testing Plan section to the PR description. Please take a look, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
if: github.repository == 'google/adk-python'guard to 3 workflows that lack this protection: v2-sync, issue-monitor, and copybara-pr-handlerContext
Other scheduled/repo-specific workflows (triage.yml, stale-bot.yml, upload-adk-docs-to-vertex-ai-search.yml) already have this guard. These 3 were missing it, causing errors on forks every day.
Testing Plan