fix(compliance): claim "no violation found" only where a rule checked the code (#368)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m30s

The CRA status called every covered control clean once a scan had
completed, even when none of its rules covers the scanned code (a C
repo and Python-only rules). The scan run now records the source
languages it saw outside vendor code, each control-map binding
declares its languages, and a control is "no violation found" only if
a binding applies; otherwise it is not assessed, with the reason.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-09-25 10:43:27 +02:00
1 parent 5f7c947fb3
commit dee24610f8
12 files changed
+631 -48

No files matched your search

+196
View File
@@ -9,6 +9,11 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript"
],
"cwe": [],
"rules": [
"cra-ai-1-flask-debug-enabled",
@@ -56,6 +61,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -70,6 +87,9 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python"
],
"cwe": [],
"rules": [
"cra-ai-7-weak-password-hash"
@@ -86,12 +106,25 @@
{
"tool": "gitleaks",
"scan_type": "secret_detection",
"languages": [],
"cwe": [],
"rules": []
},
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c"
],
"cwe": [
"CWE-798",
"CWE-259"
@@ -111,12 +144,24 @@
{
"tool": "gitleaks",
"scan_type": "secret_detection",
"languages": [],
"cwe": [],
"rules": []
},
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin"
],
"cwe": [
"CWE-798",
"CWE-522"
@@ -134,6 +179,11 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript"
],
"cwe": [],
"rules": [
"cra-ai-10-session-cookie-insecure",
@@ -151,6 +201,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -165,6 +227,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -179,6 +253,18 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c"
],
"cwe": [
"CWE-327",
"CWE-326"
@@ -198,6 +284,11 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript"
],
"cwe": [],
"rules": [
"cra-ai-14-python-weak-cipher",
@@ -215,6 +306,17 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin"
],
"cwe": [
"CWE-319",
"CWE-311"
@@ -232,12 +334,25 @@
{
"tool": "gitleaks",
"scan_type": "secret_detection",
"languages": [],
"cwe": [],
"rules": []
},
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c"
],
"cwe": [
"CWE-798",
"CWE-321"
@@ -278,6 +393,18 @@
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c"
],
"cwe": [
"CWE-89",
"CWE-78",
@@ -293,6 +420,10 @@
{
"tool": "cppcheck",
"scan_type": "sast",
"languages": [
"c",
"cpp"
],
"cwe": [
"CWE-119",
"CWE-120",
@@ -333,12 +464,14 @@
{
"tool": "osv",
"scan_type": "cve",
"languages": [],
"cwe": [],
"rules": []
},
{
"tool": "syft",
"scan_type": "sbom",
"languages": [],
"cwe": [],
"rules": []
}
@@ -353,6 +486,7 @@
{
"tool": "syft",
"scan_type": "sbom",
"languages": [],
"cwe": [],
"rules": []
}
@@ -367,6 +501,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -395,6 +541,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -409,6 +567,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -423,6 +593,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -437,6 +619,18 @@
{
"tool": "grounded-control-check",
"scan_type": "code_review",
"languages": [
"python",
"javascript",
"typescript",
"go",
"java",
"ruby",
"php",
"rust",
"csharp",
"kotlin"
],
"cwe": [],
"rules": []
}
@@ -465,12 +659,14 @@
{
"tool": "syft",
"scan_type": "sbom",
"languages": [],
"cwe": [],
"rules": []
},
{
"tool": "osv",
"scan_type": "cve",
"languages": [],
"cwe": [],
"rules": []
}