Skip to content

Commit 03035cf

Browse files
committed
chore: updated docstring for evaluate heuristic results return type
Signed-off-by: Carl Flottmann <carl.flottmann@oracle.com>
1 parent f1b6b4e commit 03035cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/macaron/slsa_analyzer/checks/detect_malicious_metadata_check.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ def evaluate_heuristic_results(
140140
141141
Returns
142142
-------
143-
tuple[float, list[str]]
143+
tuple[float, JsonType]
144144
Returns the confidence associated with the detected malicious combination, and associated rule IDs detailing
145-
what rules were triggered.
145+
what rules were triggered and their confidence as a dict[str, float] type.
146146
"""
147147
facts_list: list[str] = []
148148
triggered_rules: dict[str, JsonType] = {}
@@ -328,6 +328,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
328328
AnomalousVersionAnalyzer,
329329
]
330330

331+
# name used to query the result of all problog rules, so it can be accessed outside the model.
331332
problog_result_access = "result"
332333

333334
malware_rules_problog_model = f"""

0 commit comments

Comments
 (0)