Skip to content

Commit a461733

Browse files
committed
Run license finder in a virtual environment
The system packages now conflict with some of our installed packages so we need to use a venv to isolate them
1 parent 1601156 commit a461733

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/license-audit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
run: >
3131
docker run -v $PWD:/scan licensefinder/license_finder /bin/bash -lc "
3232
cd /scan &&
33-
pip3 install -r requirements.txt --quiet &&
33+
apt-get update &&
34+
apt-get install -y python3-venv &&
35+
python3 -m venv .venv &&
36+
source .venv/bin/activate &&
37+
pip3 install -r requirements.txt &&
3438
license_finder --decisions-file decisions.yml --python-version 3 --enabled-package-managers=pip
3539
"

0 commit comments

Comments
 (0)