Spaces:
Paused
Paused
| import json | |
| from analyzers.rule_matcher import match_rule | |
| def static_scan(rules): | |
| all_findings = [] | |
| for rule in rules["rules"]: | |
| result = match_rule(rule) | |
| all_findings.extend(result) | |
| with open("artifacts/rule_findings.json", "w") as f: | |
| json.dump(all_findings, f, indent=2) | |
| return all_findings | |