From a05d7a26ae903940e93f585533bbfbf070005a03 Mon Sep 17 00:00:00 2001 From: Jim Wild Date: Thu, 24 Oct 2024 15:56:09 +0100 Subject: [PATCH] Fix: [AEA-0000] - Add ignores to check-licenses (#6) ## Summary - :sparkles: New Feature ### Details Brings in the ignored licenses from https://github.com/NHSDigital/electronic-prescription-service-release-notes/blob/main/scripts/check_python_licenses.sh --- .github/workflows/quality-checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 91e93f7..eac2483 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -125,7 +125,9 @@ jobs: poetry run pip install pip-licenses fi - LICENSES=$(poetry run pip-licenses) + # known packages with dual licensing + IGNORE_PACKAGES="PyGithub chardet text-unidecode" + LICENSES=$(poetry run pip-licenses --ignore-packages ${IGNORE_PACKAGES}) INCOMPATIBLE_LIBS=$(echo "$LICENSES" | grep 'GPL' || true) if [[ -z $INCOMPATIBLE_LIBS ]]; then