{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "scanner-5e27fe673c02f379", "name": "Possibly dead Python function: clear_db", "shortDescription": {"text": "Possibly dead Python function: clear_db"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-d1af0dbb0843be23", "name": "Stray `console.log` in TS/JS \u2014 update_telemetry.js:61", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 update_telemetry.js:61"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-ee8a45aca4b00dd7", "name": "Stray `console.log` in TS/JS \u2014 update_login.js:60", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 update_login.js:60"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-1d00af161d742f85", "name": "`dangerouslySetInnerHTML` used in a React component \u2014 update_login.js:9", "shortDescription": {"text": "`dangerouslySetInnerHTML` used in a React component \u2014 update_login.js:9"}, "fullDescription": {"text": "Open XSS surface unless the input is provably trusted. Replace with explicit JSX or sanitize via a vetted library.\n\nWhy: OWASP basics. Already partially flagged by the security analyzer.\nRule id: fq.dangerous-html"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-c17c16161037c673", "name": "Stray `console.log` in TS/JS \u2014 fix_settings.js:14", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 fix_settings.js:14"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-474ba6a3f786b5f0", "name": "Stray `console.log` in TS/JS \u2014 update_settings.js:13", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 update_settings.js:13"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-c945e19cc76bc3e4", "name": "Insecure pattern 'dangerous_innerhtml' in update_login.js:9", "shortDescription": {"text": "Insecure pattern 'dangerous_innerhtml' in update_login.js:9"}, "fullDescription": {"text": "Found a known-risky pattern (dangerous_innerhtml). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-141b30a41e03817b", "name": "No license file detected", "shortDescription": {"text": "No license file detected"}, "fullDescription": {"text": "No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ab5d313dda8e5f9", "name": "Debug logging residue appears in source files", "shortDescription": {"text": "Debug logging residue appears in source files"}, "fullDescription": {"text": "Found 87 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-2d0c7b7ab8f8aacf", "name": "Critical user flow still appears backed by mock or placeholder data", "shortDescription": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "fullDescription": {"text": "A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-b9088664ace7f748", "name": "Composite production-readiness gap", "shortDescription": {"text": "Composite production-readiness gap"}, "fullDescription": {"text": "Multiple low-cost hardening controls are missing together: license, ci. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-a4b044717f9704e2", "name": "Agent instruction/config may expose a secret: .cursorrules", "shortDescription": {"text": "Agent instruction/config may expose a secret: .cursorrules"}, "fullDescription": {"text": "Agent-facing files are routinely pasted into LLM/tool contexts. Move literal tokens, keys, and passwords into a secret manager or document them as placeholders only."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-a318aaca9e8dec06", "name": "Legacy-named symbol `Goat_Detection_v2` in register_all_models_mlflow.py:135", "shortDescription": {"text": "Legacy-named symbol `Goat_Detection_v2` in register_all_models_mlflow.py:135"}, "fullDescription": {"text": "Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-319e66a630e14977", "name": "2 env vars used in code but missing from .env.example", "shortDescription": {"text": "2 env vars used in code but missing from .env.example"}, "fullDescription": {"text": "Drift between code and config docs. The first few: `GROQ_API_KEY`, `TREFLE_API_TOKEN`. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-2c04133e54348533", "name": "Near-duplicate function bodies in 2 places", "shortDescription": {"text": "Near-duplicate function bodies in 2 places"}, "fullDescription": {"text": "Functions with the same first-5-line body hash:\nupdate_json.py:update_file, update_json_part2.py:update_file\n\nThis is *the* AI-coder failure mode (4\u00d7 more duplication in vibe-coded repos \u2014 see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/29322"}, "properties": {"repository": "sayari657/SMART-FARM", "repoUrl": "https://github.com/sayari657/SMART-FARM", "branch": "main"}, "results": [{"ruleId": "scanner-5e27fe673c02f379", "level": "note", "message": {"text": "Possibly dead Python function: clear_db"}, "properties": {"repobilityId": "241d4c526524e28a", "scanner": "scanner-primary", "fingerprint": "5e27fe673c02f379", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "seed_enterprise.py:22"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-d1af0dbb0843be23", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 update_telemetry.js:61"}, "properties": {"repobilityId": "8b8142824af717e5", "scanner": "scanner-primary", "fingerprint": "d1af0dbb0843be23", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-ee8a45aca4b00dd7", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 update_login.js:60"}, "properties": {"repobilityId": "d166a12c8e7e77a6", "scanner": "scanner-primary", "fingerprint": "ee8a45aca4b00dd7", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-1d00af161d742f85", "level": "warning", "message": {"text": "`dangerouslySetInnerHTML` used in a React component \u2014 update_login.js:9"}, "properties": {"repobilityId": "ea885466be8868bd", "scanner": "scanner-primary", "fingerprint": "1d00af161d742f85", "layer": "frontend", "severity": "medium", "confidence": 1.0, "tags": ["frontend-quality", "fq.dangerous-html"]}}, {"ruleId": "scanner-c17c16161037c673", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 fix_settings.js:14"}, "properties": {"repobilityId": "ce55dad0d2a274fe", "scanner": "scanner-primary", "fingerprint": "c17c16161037c673", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-474ba6a3f786b5f0", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 update_settings.js:13"}, "properties": {"repobilityId": "e76b3231e8a235a1", "scanner": "scanner-primary", "fingerprint": "474ba6a3f786b5f0", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-c945e19cc76bc3e4", "level": "warning", "message": {"text": "Insecure pattern 'dangerous_innerhtml' in update_login.js:9"}, "properties": {"repobilityId": "67643d707dffd1f9", "scanner": "scanner-primary", "fingerprint": "c945e19cc76bc3e4", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "dangerous_innerhtml"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "update_login.js"}, "region": {"startLine": 9}}}]}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "4e7d5409fcc09d9a", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "35a08cd4a506c3bf", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-2d0c7b7ab8f8aacf", "level": "warning", "message": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "properties": {"repobilityId": "72e69fb8cfd8b9b1", "scanner": "scanner-primary", "fingerprint": "2d0c7b7ab8f8aacf", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "critical-flow", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "note", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "5fa2bc796db0636e", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["production-readiness", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-a4b044717f9704e2", "level": "error", "message": {"text": "Agent instruction/config may expose a secret: .cursorrules"}, "properties": {"repobilityId": "8fa43b50db8d4d16", "scanner": "scanner-primary", "fingerprint": "a4b044717f9704e2", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["agent-instructions", "secrets", "cursor_rule"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": ".cursorrules"}, "region": {"startLine": 216}}}]}, {"ruleId": "scanner-a318aaca9e8dec06", "level": "note", "message": {"text": "Legacy-named symbol `Goat_Detection_v2` in register_all_models_mlflow.py:135"}, "properties": {"repobilityId": "d627152e4312cb8a", "scanner": "scanner-primary", "fingerprint": "a318aaca9e8dec06", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-319e66a630e14977", "level": "none", "message": {"text": "2 env vars used in code but missing from .env.example"}, "properties": {"repobilityId": "d838d1fc5d8231c9", "scanner": "scanner-primary", "fingerprint": "319e66a630e14977", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "config-drift"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "297a1b1663255776", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}]}]}