Skip to content

Commit

Permalink
Create osv-demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rufer7 authored Jan 29, 2025
1 parent 9cb9724 commit 459ab75
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/osv-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: OSV-Scanner demo

on:
workflow_dispatch:
push:
branches: ["main"]

jobs:
scan:
name: Check licenses
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install OSV-Scanner
run: |
go install github.com/google/osv-scanner/cmd/osv-scanner@v2.0.0-beta1
- name: Run OSV-Scanner
run: |
osv-scanner scan source -r src
osv-scanner --experimental-licenses-summary src
osv-scanner --experimental-licenses="MIT,Apache-2.0" src
- uses: actions/upload-artifact@v4
with:
path: $RUNNER_TEMP/reports



osv-scanner --experimental-licenses-summary path/to/repository

0 comments on commit 459ab75

Please sign in to comment.