Skip to content

Commit 03e1b32

Browse files
committed
feat(config): add audit:trivy-update task for manual database refreshes
1 parent 7fcb45c commit 03e1b32

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.unirtm.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,20 @@ unirtm run audit
196196
'''
197197
output = 'interleaved'
198198

199+
[tasks."audit:trivy-update"]
200+
description = 'Update Trivy vulnerability databases locally'
201+
run = '''
202+
export TRIVY_DB_REPOSITORY="public.ecr.aws/aquasecurity/trivy-db"
203+
export TRIVY_JAVA_DB_REPOSITORY="public.ecr.aws/aquasecurity/trivy-java-db:1"
204+
205+
echo "Downloading main vulnerability DB..."
206+
unirtm exec -- trivy image --download-db-only
207+
208+
echo "Downloading Java index DB..."
209+
unirtm exec -- trivy image --download-java-db-only
210+
'''
211+
output = 'interleaved'
212+
199213
[tools]
200214
'github:anchore/syft' = '1.44.0'
201215
'github:aquasecurity/trivy' = '0.70.0'

0 commit comments

Comments
 (0)