From 576b509c206ab4e6027ccaf3aecae98a62c77f3b Mon Sep 17 00:00:00 2001 From: Stanislaw Malinowski Date: Tue, 8 Oct 2024 09:25:26 +0100 Subject: [PATCH 1/2] add dependencies checker to the release workflow --- .github/workflows/_release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 10d8ed87..b360dcb8 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -11,6 +11,9 @@ jobs: with: merge-multiple: true + - name: Dependencies license compliance checker + uses: pilosus/action-pip-license-checker@v2.0.0 + - name: Zip up docs run: | set -vxeuo pipefail From 36168bbc551f869b9927fbb185e8ea11d68ff04d Mon Sep 17 00:00:00 2001 From: Stanislaw Malinowski Date: Tue, 8 Oct 2024 16:42:21 +0100 Subject: [PATCH 2/2] license check report pinned to 2.0 and add report saving --- .github/workflows/_release.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index b360dcb8..1332bd2d 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -12,7 +12,27 @@ jobs: merge-multiple: true - name: Dependencies license compliance checker - uses: pilosus/action-pip-license-checker@v2.0.0 + id: license_check_report + uses: pilosus/action-pip-license-checker@cc7a461bfa27b44ad187b8578c881ef5138c13fd + with: + external: "licenses.csv" + external-format: "csv" + external-options: "{:skip-header false :package-column-index 0 :license-column-index 2}" + report-format: "json-pretty" + formatter: "%-65s %-65s %-20s %-40s" + totals: true + headers: true + fail: "StrongCopyleft,NetworkCopyleft,Other,Error" + verbose: 1 + - name: Save report + if: ${{ always() }} + run: echo "${{ steps.license_check_report.outputs.report }}" > license-report.json + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: license-report + path: license-report.json - name: Zip up docs run: |