From 14b5d1b29d649e2d3439e3f79d0a51e86f7f38ad Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Wed, 24 Sep 2025 11:20:02 +0300 Subject: [PATCH] Simplify scan workflow (#2692) Signed-off-by: Avgustin Marinov --- .github/workflows/reusable_workflow_license-scan.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/reusable_workflow_license-scan.yaml b/.github/workflows/reusable_workflow_license-scan.yaml index e7ec8c395..0e3113dc3 100644 --- a/.github/workflows/reusable_workflow_license-scan.yaml +++ b/.github/workflows/reusable_workflow_license-scan.yaml @@ -50,7 +50,7 @@ jobs: - name: Check dependency licenses with dash tool (and open issues to Dash IP lab, doesn't fail) if: ${{ inputs.open_tickets }} run: | - mvn license-tool:license-check -Ddash.fail=false -PcheckLicense -Ddash.iplab.token=${GITLAB_API_TOKEN} + mvn license-tool:license-check -Ddash.fail=false -PcheckLicense -Ddash.iplab.token=${{ secrets.GITLAB_API_TOKEN }} CHANGED_FILES_COUNT=$(git status --short | wc -l) CHANGED_FILES_COUNT=${CHANGED_FILES_COUNT//[[:space:]]/} echo "Number of changed files: ${CHANGED_FILES_COUNT}" @@ -75,8 +75,6 @@ jobs: exit 1 fi fi - env: - GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }} - name: Check dependency licenses with dash tool (and fail if there are restricted dependencies) run: mvn license-tool:license-check -Ddash.fail=true -PcheckLicense --projects '!org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test' \ No newline at end of file