Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

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

* Delete .github/license_scan_config.yml

* Update license_scan.yml
  • Loading branch information
tmberthold authored Jan 26, 2024
1 parent e2b4996 commit ae069bf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
13 changes: 0 additions & 13 deletions .github/license_scan_config.yml

This file was deleted.

26 changes: 21 additions & 5 deletions .github/workflows/license_scan.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
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:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Run license scanner
uses: aquasecurity/trivy-action@master
Expand All @@ -21,3 +20,20 @@ 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: npm install (client-ts)
run: cd extensions/broker-server-api/client-ts && npm install
- 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 ae069bf

Please sign in to comment.