From b126c8ec3338d4a87305970e7f79d9ac1903a239 Mon Sep 17 00:00:00 2001 From: Joe Haines Date: Mon, 20 May 2024 10:22:39 +0100 Subject: [PATCH] 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 --- .github/workflows/license-audit.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license-audit.yml b/.github/workflows/license-audit.yml index 96957f3..951828c 100644 --- a/.github/workflows/license-audit.yml +++ b/.github/workflows/license-audit.yml @@ -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 "