Fix license scans (#2508)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
2
.github/workflows/release_tag.yaml
vendored
2
.github/workflows/release_tag.yaml
vendored
@@ -30,7 +30,7 @@ jobs:
|
|||||||
tag:
|
tag:
|
||||||
# only on original eclipse-hawkbit/hawkbit repo and when release fixed version
|
# only on original eclipse-hawkbit/hawkbit repo and when release fixed version
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit' && inputs.revision != '0-SNAPSHOT'
|
if: github.repository == 'eclipse-hawkbit/hawkbit' && inputs.revision != '0-SNAPSHOT'
|
||||||
uses: ./.github/workflows/reusable_workflow_tag@${{ github.sha }}
|
uses: ./.github/workflows/reusable_workflow_tag
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -43,10 +43,13 @@ jobs:
|
|||||||
- name: Check file license headers
|
- name: Check file license headers
|
||||||
run: mvn license:check -PcheckLicense --batch-mode
|
run: mvn license:check -PcheckLicense --batch-mode
|
||||||
|
|
||||||
- name: Check dependency licenses with dash tool (and open issues to Dash IP lab, doesn't fail)
|
- name: Build (needed for dash tool scans
|
||||||
if: ${{ inputs.open_tickets == 'true' }}
|
|
||||||
run: |
|
run: |
|
||||||
mvn clean install -DskipTests -DskipJavadoc --batch-mode
|
mvn clean install -DskipTests -DskipJavadoc --batch-mode
|
||||||
|
|
||||||
|
- 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} --projects '!org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test'
|
mvn license-tool:license-check -Ddash.fail=false -PcheckLicense -Ddash.iplab.token=${GITLAB_API_TOKEN} --projects '!org.eclipse.hawkbit:hawkbit-repository-test,!org.eclipse.hawkbit:hawkbit-dmf-rabbitmq-test'
|
||||||
CHANGED_FILES_COUNT=$(git status --short | wc -l)
|
CHANGED_FILES_COUNT=$(git status --short | wc -l)
|
||||||
CHANGED_FILES_COUNT=${CHANGED_FILES_COUNT//[[:space:]]/}
|
CHANGED_FILES_COUNT=${CHANGED_FILES_COUNT//[[:space:]]/}
|
||||||
|
|||||||
Reference in New Issue
Block a user