Skip to content

Commit

Permalink
fix: scan tool active check removed (#5771)
Browse files Browse the repository at this point in the history
* scan tool active check removed

* query fix
  • Loading branch information
kripanshdevtron authored Aug 30, 2024
1 parent a625e7e commit ff89a26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions scripts/sql/281_update_scan_tool_metadata.down.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ SET image_scan_descriptor_template = '[
]', updated_on = 'now()'
WHERE name = 'TRIVY'
AND version = 'V1'
AND scan_target = 'IMAGE'
AND active = true
AND deleted = false;
AND scan_target = 'IMAGE';

ALTER TABLE image_scan_execution_result
DROP COLUMN class,
Expand Down
4 changes: 1 addition & 3 deletions scripts/sql/281_update_scan_tool_metadata.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ UPDATE scan_tool_metadata SET result_descriptor_template = '[

WHERE name = 'TRIVY'
AND version = 'V1'
AND scan_target = 'IMAGE'
AND active = true
AND deleted = false;
AND scan_target = 'IMAGE';

ALTER TABLE image_scan_execution_result
ADD COLUMN class TEXT,
Expand Down

0 comments on commit ff89a26

Please sign in to comment.