Skip to content

fix(compliance-bridge): honor zero balance in ledger providers #293

fix(compliance-bridge): honor zero balance in ledger providers

fix(compliance-bridge): honor zero balance in ledger providers #293

Workflow file for this run

# Copyright 2026 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: License Guard
on:
push:
branches:
- main
- 'release/**'
- 'feat/**'
pull_request:
branches:
- main
- 'release/**'
jobs:
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version-file: "pyproject.toml"
- name: Install Dependencies
run: uv sync --group dev
- name: Install pip-licenses
run: uv pip install pip-licenses
- name: Run License Audit
run: |
uv run pip-licenses --format=json > licenses.json
# Check for forbidden licenses
if grep -iE '("GPL"|"AGPL"|"LGPL"|"General Public License")' licenses.json; then
echo "::error::Forbidden license found! (GPL/AGPL/LGPL)"
exit 1
fi
echo "License audit passed. No forbidden licenses detected."