Skip to content

ci: add license scan workflow #5

ci: add license scan workflow

ci: add license scan workflow #5

name: License Scan
on: pull_request
permissions:
contents: read
jobs:
fossology-license-scan:
name: Fossology License Scan
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_PULL_REQUEST: ${{secrets.GITHUB_PULL_REQUEST}}
GITHUB_REPO_OWNER: ${{secrets.GITHUB_REPO_OWNER}}
runs-on: ubuntu-latest
container:
image: fossology/fossology:scanner
steps:
- uses: actions/checkout@v3
- name: Fossology run
run: /bin/fossologyscanner repo nomos ojo copyright keyword
continue-on-error: true
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: scan-result
path: ./results
- name: Artifact download
uses: actions/download-artifact@v3
with:
name: scan-result