Skip to content

Update code and docs about CCNP #188

Update code and docs about CCNP

Update code and docs about CCNP #188

name: License Scan
on:
push:
branches:
- main
paths:
- 'cnap/**/requirements.txt'
- 'cnap/**/requirements-test.txt'
pull_request:
paths:
- 'cnap/**/requirements.txt'
- 'cnap/**/requirements-test.txt'
workflow_dispatch:
permissions:
contents: read
jobs:
codescan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Check License
run: |
set -ex
python3 -m pip install --upgrade pip
python3 -m pip install liccheck
license_files=$(find -type f -name "requirements*.txt")
if [[ -n "$license_files" ]]; then
for f in $license_files; do
python3 -m pip install -r $f
liccheck -s .github/license_check.ini -r $f
done
else
echo "No license files found."
fi