File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Tests/kaas/k8s-version-policy Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -388,8 +388,7 @@ async def collect_cve_versions(session: aiohttp.ClientSession) -> set:
388388
389389
390390async def run_trivy_scan (image : str ) -> dict :
391- """
392- Run Trivy scan on the specified image and return the results as a dictionary.
391+ """Run Trivy scan on the specified image and return the results as a dictionary.
393392
394393 Args:
395394 image (str): The Docker image to scan.
@@ -560,10 +559,10 @@ async def main(argv):
560559
561560 try :
562561 logger .info (
563- f"""Initiating scan on the Kubernetes cluster specified by kubeconfig at ' { config .kubeconfig } '
564- { ' with context ' + config .context if config .context else '' } .
562+ f"""Initiating scan on the Kubernetes cluster specified by kubeconfig at { config .kubeconfig }
563+ with context { config .context if config .context else '' } .
565564 Fetching cluster information and verifying access.""" )
566- cluster = await get_k8s_cluster_info (config .kubeconfig , config .context )
565+ await get_k8s_cluster_info (config .kubeconfig , config .context )
567566 await scan_k8s_images (config .kubeconfig )
568567
569568 except CriticalException as e :
You can’t perform that action at this time.
0 commit comments