Skip to content
Closed

Test #436

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
43 changes: 43 additions & 0 deletions .github/workflows/check_private_index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Check for Private Index URLs in uv.lock

on:
push:
pull_request:

jobs:
check-for-private-index:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Search for private index URL in uv.lock files
run: |
FORBIDDEN_URL="us-python.pkg.dev"
FOUND_FILES=$(find . -type f -name "uv.lock" -print)
if [ -n "$FOUND_FILES" ]; then
# Use grep and check its exit code. grep exits with 0 if a match is found.
if echo "$FOUND_FILES" | xargs grep -q "$FORBIDDEN_URL"; then
echo "::error::Found private index URL ($FORBIDDEN_URL) in the following uv.lock files:"
# Show which files contain the URL
echo "$FOUND_FILES" | xargs grep -H "$FORBIDDEN_URL"
exit 1
else
echo "No private index URLs found in uv.lock files."
fi
else
echo "No uv.lock files found to check."
fi
4 changes: 4 additions & 0 deletions a2a_agents/python/a2ui_extension/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading