MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / _convert_to_artifact

Method _convert_to_artifact

aura/output/sarif.py:98–112  ·  view source on GitHub ↗
(detection)

Source from the content-addressed store, hash-verified

96
97 @staticmethod
98 def _convert_to_artifact(detection) -> dict:
99 artifact = {
100 "location": {
101 "uri": detection.scan_location.location.as_uri()
102 },
103 "length": detection.scan_location.size,
104 "hashes": {
105 "md5": detection.scan_location.metadata["md5"],
106 "sha-1": detection.scan_location.metadata["sha1"],
107 "sha-256": detection.scan_location.metadata["sha256"],
108 "sha-512": detection.scan_location.metadata["sha512"],
109 "tlsh": detection.scan_location.metadata["tlsh"]
110 }
111 }
112 return artifact

Callers 1

outputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected