We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd1c332 + fe8324a commit 5b148d8Copy full SHA for 5b148d8
pkg/policyGovernance/security/imageScanning/repository/ImageScanDeployInfoRepository.go
@@ -241,7 +241,9 @@ func (impl ImageScanDeployInfoRepositoryImpl) scanListQueryWithObject(request *r
241
query = query + ` INNER JOIN environment env on env.id=info.env_id
242
INNER JOIN cluster c on c.id=env.cluster_id
243
WHERE info.scan_object_meta_id > 0 and env.active=true and info.image_scan_execution_history_id[1] != -1
244
- AND a.app_name like '%` + request.AppName + `%' `
+ AND a.app_name like ? `
245
+
246
+ queryParams = append(queryParams, util.GetLIKEClauseQueryParam(request.AppName))
247
248
if len(deployInfoIds) > 0 {
249
query += " AND info.id IN (?) "
0 commit comments