Skip to content

Commit

Permalink
chore: Improve the license check to report on the pip license checker…
Browse files Browse the repository at this point in the history
… outcomes (#180)
  • Loading branch information
robertsevernsentient committed Mar 1, 2024
1 parent 60d9c80 commit 0ea93a5
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@ jobs:
license_check:
runs-on: ubuntu-latest
steps:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '16.14.2'
- name: Checkout Ref
uses: actions/checkout@v1

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://npm.pkg.github.com/

- name: Install dependencies
run: npm install && npm install -g license-checker

- name: Generate license-checker CSV file
run: license-checker --start --production --csv --out npm-license-checker.csv

- name: Check license-checker CSV file without headers
id: license_check_report
uses: pilosus/action-pip-license-checker@v2
Expand All @@ -28,13 +33,13 @@ jobs:
external-options: '{:skip-header true}'
fail: 'StrongCopyleft,NetworkCopyleft,Other,Error'
fails-only: true
exclude: 'evolv-ai*,SentientTechnologies*'
exclude-license: '(?i)copyright'
totals: true
verbose: 1
github-token: ${{ secrets.GH_TOKEN }}
- name: Print incorrect dependencies (failure)
if: failure()
run: license-checker --start --production --exclude 'BSD, MIT, Apache-2.0'

- name: Print report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}"


0 comments on commit 0ea93a5

Please sign in to comment.