Skip to content

Commit

Permalink
add license check
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Oct 28, 2024
1 parent c217c07 commit f4fb22f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ jobs:
with:
merge-multiple: true

- name: Dependencies license compliance checker
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: |
set -vxeuo pipefail
Expand Down

0 comments on commit f4fb22f

Please sign in to comment.