Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
achiar99 committed Oct 25, 2023
1 parent f01120c commit ead21fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checkov/common/bridgecrew/platform_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def persist_reachability_scan_results(self, reachability_report: Optional[Dict[S
if not reachability_report:
return
for lang, report in reachability_report.items():
persist_reachability_results(f'sast_{lang.value}', report, self.s3_client, self.bucket, self.repo_path)
persist_reachability_results(f'sast_{lang}', {lang: report}, self.s3_client, self.bucket, self.repo_path)

def persist_image_scan_results(self, report: dict[str, Any] | None, file_path: str, image_name: str, branch: str) -> None:
if not self.s3_client:
Expand Down
4 changes: 2 additions & 2 deletions checkov/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def save_sast_reachability_data(self, scan_reports: List[Report]) -> None:

formated_report = {}
for lang, repos_data in result.items():
formated_report[lang] = []
formated_report[lang.value] = []
for repo_name, files_data in repos_data.items():
new_repo = {'Name': repo_name, 'Files': []}
for file_path, packages_data in files_data['files'].items():
Expand All @@ -771,7 +771,7 @@ def save_sast_reachability_data(self, scan_reports: List[Report]) -> None:
new_package['Functions'].append(new_func)
new_file['Packages'].append(new_package)
new_repo['Files'].append(new_file)
formated_report[lang].append(new_repo)
formated_report[lang.value].append(new_repo)
self.sast_data.set_reachability_report(formated_report)

def print_results(
Expand Down

0 comments on commit ead21fd

Please sign in to comment.