From c8385542143093a2c30f2d68da48ccbe15d8883e Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Tue, 24 Jun 2025 09:16:02 +0300 Subject: [PATCH] Fail license scan (after DEPENDENCIES commit) if there are restricted --- .github/workflows/license-scan.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license-scan.yml b/.github/workflows/license-scan.yml index a3db2e9ca..b2e102e99 100644 --- a/.github/workflows/license-scan.yml +++ b/.github/workflows/license-scan.yml @@ -60,5 +60,7 @@ jobs: git status --short exit 1 fi + # do dash.fail=true so if there are restricted dependencis the build will fail + mvn license-tool:license-check -Ddash.fail=true -PcheckLicense -Ddash.iplab.token=${GITLAB_API_TOKEN} --projects '!org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test' env: - GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }} \ No newline at end of file + GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }}