Skip to content

Commit

Permalink
chore(trivy): Added initial config
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Genov <[email protected]>
  • Loading branch information
Michaelpalacce committed Nov 25, 2024
1 parent 65a6add commit 49317ac
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
timeout: 10m
format: json
dependency-tree: true
list-all-pkgs: true
exit-code: 1
output: result.json
severity:
- HIGH
- CRITICAL
scan:
skip-dirs:
.settings
.m2
docs
infrastructure
target
vro-types

scanners:
- vuln
- secret
vulnerability:
type:
- os
- library
ignore-unfixed: true
20 changes: 20 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: .github/trivy.yml

0 comments on commit 49317ac

Please sign in to comment.