add licence check yml #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeScanner Check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
license-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install Pipenv and Conan | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install pipenv scancode-toolkit | |
- name: Run scancode | |
run: | | |
scancode -clpeui -n 2 --json-pp scan.json ${{ github.workspace }} | |
- name: Upload json as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: scan-json | |
path: scan.json | |