diff options
| author | Michael Moore <1198206+imichaelmoore@users.noreply.github.com> | 2026-08-21 09:44:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-21 09:44:54 -0700 |
| commit | 340e33aef211d95769d252324854497af871dafe (patch) | |
| tree | c13c57f09d59121a2bbbc616677059cebd4f6efa /plugins/claude-security/scripts/lib/sarif.py | |
| parent | 67a666efc8524ff7abaa266f84e514aa77aee48f (diff) | |
| parent | 1247e88a7028a6c47493081ef221989cb302b8ef (diff) | |
Merge pull request #5560 from anthropics/claude-security-v0.10.2
Claude Security Plugin - v0.10.2
Diffstat (limited to 'plugins/claude-security/scripts/lib/sarif.py')
| -rw-r--r-- | plugins/claude-security/scripts/lib/sarif.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/claude-security/scripts/lib/sarif.py b/plugins/claude-security/scripts/lib/sarif.py index f30d0afa..1b851101 100644 --- a/plugins/claude-security/scripts/lib/sarif.py +++ b/plugins/claude-security/scripts/lib/sarif.py @@ -31,7 +31,8 @@ ID_PREFIX = "claude-security-plugin" FINGERPRINT_KEY = ID_PREFIX + "/v2" CONTEXT_LINES = 3 SRCROOT = "%SRCROOT%" -LEVEL = {"HIGH": "error", "MEDIUM": "warning", "LOW": "note"} +# error is SARIF's highest level, so CRITICAL and HIGH both map to it. +LEVEL = {"CRITICAL": "error", "HIGH": "error", "MEDIUM": "warning", "LOW": "note"} @dataclass(frozen=True) |
