Skip to content

Commit

Permalink
ci: add license scan workflow (#3407)
Browse files Browse the repository at this point in the history
* ci: add license scan workflow

Signed-off-by: Shahar Harari <[email protected]>

* fix lint issues

Signed-off-by: Shahar Harari <[email protected]>

---------

Signed-off-by: Shahar Harari <[email protected]>
  • Loading branch information
shahar-h authored May 16, 2024
1 parent 32c6876 commit e5f8630
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/license-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: License Scan

on:
pull_request:
branches:
- "main"
push:
branches:
- "main"

permissions:
contents: read

jobs:
scan:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Run scanner
uses: google/osv-scanner-action/osv-scanner-action@75532bf0bf75464b047d80414dbce04449498365 # v1.7.3
with:
scan-args: |-
--skip-git
--experimental-licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
./
continue-on-error: true # TODO remove once all issues are resolved

0 comments on commit e5f8630

Please sign in to comment.