Skip to content

Commit

Permalink
feat: support for ca cert in trivy (#5064)
Browse files Browse the repository at this point in the history
* trivy ca cert sql migration

* sql no update

* sql no update
  • Loading branch information
ashishdevtron authored May 18, 2024
1 parent 0eea3f5 commit 5a75ad9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/sql/247_trivy_ca_cert_support.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE public.scan_tool_step
SET cli_command = 'trivy image -f json -o {{.OUTPUT_FILE_PATH}} --timeout {{.timeout}} {{.IMAGE_NAME}} --username {{.USERNAME}} --password {{.PASSWORD}}'
WHERE id = 1;
4 changes: 4 additions & 0 deletions scripts/sql/247_trivy_ca_cert_support.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
UPDATE public.scan_tool_step
SET cli_command = '{{if .CA_CERT_FILE_PATH}} SSL_CERT_FILE={{.CA_CERT_FILE_PATH}} {{end}} trivy {{if .insecure}} --insecure {{end}} image -f json -o {{.OUTPUT_FILE_PATH}} --timeout {{.timeout}} {{
.IMAGE_NAME}} --username {{.USERNAME}} --password {{.PASSWORD}}'
WHERE id = 1;

0 comments on commit 5a75ad9

Please sign in to comment.