fix(sast): run only our own semgrep rules, no registry rules or metrics (#441)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 4m35s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit was merged in pull request #441.
This commit is contained in:
sharangandClaude Opus 5.5 committed 2026-10-05 13:03:43 +00:00
1 parent 260d07c783
commit a66b7a5991
61 files changed
+417 -319

No files matched your search

+12 -65
View File
@@ -119,14 +119,6 @@
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c",
"cpp"
],
@@ -135,6 +127,7 @@
"CWE-259"
],
"rules": [
"cra-ai-8-python-hardcoded-credential",
"cra-ai-8-c-hardcoded-credential"
],
"check": "No credential (password, key, token) may be written into the product's source, as a variable or a #define: every device would ship the same secret. A placeholder or an empty value does not violate it."
@@ -154,27 +147,6 @@
"cwe": [],
"rules": [],
"check": "Credentials must not be kept in plain text in the source or configuration; a real secret committed to the repository violates it."
},
{
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin"
],
"cwe": [
"CWE-798",
"CWE-522"
],
"rules": [],
"check": "Credentials must not be kept or compared in plain text; a hard-coded or plain-text stored secret violates it."
}
],
"note": null,
@@ -267,15 +239,6 @@
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c",
"cpp"
],
@@ -325,19 +288,13 @@
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin"
"typescript"
],
"cwe": [
"CWE-319",
"CWE-311"
"cwe": [],
"rules": [
"cra-ai-15-python-cleartext-http",
"cra-ai-15-node-cleartext-http"
],
"rules": [],
"check": "Network traffic must use TLS 1.2 or newer with certificate checking; plain HTTP for sensitive data, disabled verification or old protocol versions violate it."
}
],
@@ -360,15 +317,6 @@
"tool": "semgrep",
"scan_type": "sast",
"languages": [
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c",
"cpp"
],
@@ -417,12 +365,6 @@
"python",
"javascript",
"typescript",
"java",
"go",
"ruby",
"php",
"csharp",
"kotlin",
"c",
"cpp"
],
@@ -433,11 +375,16 @@
"CWE-22"
],
"rules": [
"cra-ai-20-python-shell-command",
"cra-ai-20-python-sql-string",
"cra-ai-20-python-unsafe-deserialization",
"cra-ai-20-node-shell-command",
"cra-ai-20-node-reflected-input",
"cra-ai-20-c-unbounded-string-function",
"cra-ai-20-c-scanf-unbounded-string",
"cra-ai-20-c-non-literal-format-string"
],
"check": "The code must not write past a buffer or let input control a format string: strcpy, strcat, sprintf, gets, scanf(\"%s\") or a non-literal format argument violates it."
"check": "Untrusted input must not reach a shell, an SQL statement or an HTML response unencoded, and the code must not write past a buffer or let input control a format string: a command or query built from a variable, request input echoed into a response, strcpy, strcat, sprintf, gets, scanf(\"%s\") or a non-literal format argument violates it."
},
{
"tool": "cppcheck",