Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ Following inputs can be used as `step.with` keys:
| `cacheDir` | String | | Cache directory |
| `timeout` | String | `2m0s` | Scan timeout duration |
| `ignorePolicy` | String | | Filter vulnerabilities with OPA rego language |
| `dbRepository` | String | | vulnerability DB OCI repository |


[license]: https://github.com/aquasecurity/trivy-pipe/blob/master/LICENSE
Expand Down
4 changes: 4 additions & 0 deletions pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ variables:
description: 'hide progress output'
required: false
default: true
- name: dbRepository
description: 'comma separated list of directories where traversal is skipped'
required: false
default: ''

respository: https://github.com/aquasecurity/trivy-pipe
maintainer:
Expand Down
3 changes: 3 additions & 0 deletions pipe/pipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ fi
if [ "$hideProgress" == "true" ];then
ARGS="$ARGS --no-progress"
fi
if [ $dbRepository ];then
ARGS="$ARGS --db-repository $dbRepository"
fi

echo "Running trivy with options: ${ARGS}" "${artifactRef}"
echo "Global options: " "${GLOBAL_ARGS}"
Expand Down