Improve package usability (#10) #39
Workflow file for this run
This file contains 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
# Copyright (c) 2023-2024 tracetronic GmbH | |
# | |
# SPDX-License-Identifier: MIT | |
name: Ensure 3rd Party License Compliance | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
validate-sbom: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install poetry | |
run: pip3 install poetry | |
- name: Active Python version | |
run: | | |
echo "Active Python version is..." | |
python --version | |
- name: Export dependencies to requirements file | |
run: poetry export --only main -f requirements.txt -o requirements.txt --without-hashes --without-urls | |
- name: Install pipenv environment | |
run: pip3 install pipenv | |
- name: Create Pipfile.lock | |
run: pipenv install -r requirements.txt | |
- name: Install dev dependencies | |
run: poetry install --only dev --no-root | |
- name: check license compliance against allowlist | |
run: | | |
poetry run python config/license/check_dependencies.py ` | |
--allowlist="config/license/allowlist.json" ` | |
--sbom="cyclonedx.json" ` | |
--schema="config/license/allowlist_schema.json" |