Skip to content

build(deps): bump flask-cors from 4.0.1 to 5.0.0 in /cnap #192

build(deps): bump flask-cors from 4.0.1 to 5.0.0 in /cnap

build(deps): bump flask-cors from 4.0.1 to 5.0.0 in /cnap #192

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