-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add trivy.yml * remove pinned versions * ignore=DL3008 * fix superlinter CHECKOV and GITHUB_ACTIONS
- Loading branch information
1 parent
d7028a1
commit 3db05fc
Showing
2 changed files
with
34 additions
and
1 deletion.
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,32 @@ | ||
name: Run Trivy vulnerability scanner | ||
|
||
on: [ push ] | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Build wis2downloader | ||
run: | | ||
docker build -t wis2downloader:test -f ./docker/Dockerfile . | ||
- name: Run Trivy vulnerability scanner on wis2downloader | ||
uses: aquasecurity/trivy-action@0.20.0 | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1 | ||
with: | ||
image-ref: 'wis2downloader:test' | ||
format: 'table' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH' | ||
ignorefile: '.trivyignore' |
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