Skip to content

Commit

Permalink
Run license finder in a virtual environment
Browse files Browse the repository at this point in the history
The system packages now conflict with some of our installed packages so
we need to use a venv to isolate them
  • Loading branch information
imjoehaines committed May 20, 2024
1 parent 1601156 commit a461733
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/license-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
run: >
docker run -v $PWD:/scan licensefinder/license_finder /bin/bash -lc "
cd /scan &&
pip3 install -r requirements.txt --quiet &&
apt-get update &&
apt-get install -y python3-venv &&
python3 -m venv .venv &&
source .venv/bin/activate &&
pip3 install -r requirements.txt &&
license_finder --decisions-file decisions.yml --python-version 3 --enabled-package-managers=pip
"

0 comments on commit a461733

Please sign in to comment.