MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_vulnerability_data

Method get_vulnerability_data

utils.py:944–956  ·  view source on GitHub ↗

Get vulnerability scan results

(self)

Source from the content-addressed store, hash-verified

942 return loot
943
944 def get_vulnerability_data(self):
945 """Get vulnerability scan results"""
946 vulnerabilities = []
947
948 try:
949 import pandas as pd
950 if os.path.exists(self.shared_data.vuln_summary_file):
951 df = pd.read_csv(self.shared_data.vuln_summary_file)
952 vulnerabilities = df.to_dict('records')
953 except Exception as e:
954 self.logger.error(f"Error reading vulnerability data: {e}")
955
956 return vulnerabilities
957
958 @staticmethod
959 def _format_bytes(bytes_value):

Callers 1

get_vulnerabilitiesFunction · 0.80

Calls 3

read_csvMethod · 0.80
errorMethod · 0.80
to_dictMethod · 0.45

Tested by

no test coverage detected