Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add license scan workflow #3407

Merged
merged 2 commits into from
May 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Check warning on line 21 in .github/workflows/license-scan.yml

View workflow job for this annotation

GitHub Actions / lint

21:99 [comments] too few spaces before comment

Check warning on line 21 in .github/workflows/license-scan.yml

View workflow job for this annotation

GitHub Actions / lint

21:99 [comments] too few spaces before comment

Check warning on line 21 in .github/workflows/license-scan.yml

View workflow job for this annotation

GitHub Actions / lint

21:99 [comments] too few spaces before comment
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

Check failure on line 27 in .github/workflows/license-scan.yml

View workflow job for this annotation

GitHub Actions / lint

27:73 [new-line-at-end-of-file] no new line character at the end of file

Check failure on line 27 in .github/workflows/license-scan.yml

View workflow job for this annotation

GitHub Actions / lint

27:73 [new-line-at-end-of-file] no new line character at the end of file

Check failure on line 27 in .github/workflows/license-scan.yml

View workflow job for this annotation

GitHub Actions / lint

27:73 [new-line-at-end-of-file] no new line character at the end of file
Loading