forked from eclipse-edc/DataDashboard
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add license and vulnerability scanner (#66)
Co-authored-by: Richard Treier <richard.treier@sovity.de>
- Loading branch information
1 parent
f5ccc42
commit a291c4e
Showing
4 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
format: table | ||
vulnerability: | ||
type: | ||
- os | ||
- library | ||
ignore-unfixed: true | ||
scan: | ||
security-checks: | ||
- license | ||
license-full: true | ||
severity: | ||
- UNKNOWN | ||
- HIGH | ||
- CRITICAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Trivy License Scans | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
|
||
jobs: | ||
license_scan: | ||
name: license_scan | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
cache-dependency-path: 'package-lock.json' | ||
|
||
- name: Run license scanner | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
scan-type: 'rootfs' | ||
scan-ref: '.' | ||
trivy-config: ".github/license_scan_config.yml" | ||
exit-code: 1 | ||
|
||
- name: Run vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
scan-type: 'fs' | ||
scan-ref: '.' | ||
security-checks: vuln, config | ||
severity: CRITICAL | ||
exit-code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This concerns the dev dependency @angular-devkit/build-angular. | ||
# This dependency uses webpack-merge@5.8.0 that uses wildcard which uses minimist 1.2.0 (which is causing the error) | ||
CVE-2021-44906 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.