Skip to content

Commit

Permalink
changing the trivy container API to just trivy so that users can reta…
Browse files Browse the repository at this point in the history
…in regular functionality as before since trivy was the API argument for container images previously. At the UI level it will still display Trivy Container Image
  • Loading branch information
faizanH committed Jan 23, 2024
1 parent dbc58fc commit 3520f26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/lambdas/api/repo/repo/util/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"owasp_dependency_check": None,
"php_sensio_security_checker": None,
"bundler_audit": None,
"trivy_image": None,
"trivy": None,
"trivy_sca": None,
},
"secret": {"gitsecrets": None, "truffle_hog": None},
Expand Down Expand Up @@ -94,7 +94,7 @@
# Add the Aqua plugin if it is enabled
PLUGIN_LIST_BY_CATEGORY["vulnerability"]["aqua_cli_scanner"] = None
for i in QUALIFIED_PLUGINS["vulnerability"]:
if i == ["trivy_image" or "trivy_sca"]:
if i == ["trivy" or "trivy_sca"]:
# Set aqua_cli_scanner as an alternate option to trivy for qualification
i.append("aqua_cli_scanner")
else:
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/scanPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ export const vulnPluginsKeys: ScanPluginKeys = {
},
snyk: { displayName: t`Snyk`, apiName: "snyk", group: GROUP_VULN },
trivy_image: {
displayName: t`Trivy Container Images`,
apiName: "trivy_image",
displayName: t`Trivy Container Image`,
apiName: "trivy",
group: GROUP_VULN,
},
trivy_sca: {
Expand Down
8 changes: 6 additions & 2 deletions ui/src/locale/en/messages.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3520f26

Please sign in to comment.