Skip to content

Commit

Permalink
ci : update license scan (#648)
Browse files Browse the repository at this point in the history
* Update license_scan.yml

* Delete .github/license_scan_config.yml
  • Loading branch information
tmberthold committed Jan 26, 2024
1 parent 0d063ed commit 63f08bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
13 changes: 0 additions & 13 deletions .github/license_scan_config.yml

This file was deleted.

22 changes: 18 additions & 4 deletions .github/workflows/license_scan.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Trivy License Scan

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

jobs:
license_scan:
name: license_scan
license_scan1:
name: License scan (rootfs)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand All @@ -21,3 +20,18 @@ jobs:
scanners: "license"
severity: "CRITICAL,HIGH"
exit-code: 1
license_scan2:
name: License scan (repo)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run license scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: "repo"
scan-ref: "."
scanners: "license"
severity: "CRITICAL,HIGH"
exit-code: 1

0 comments on commit 63f08bc

Please sign in to comment.