{"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-579664422932ab92", "name": "Possibly dead Python function: update_ers", "shortDescription": {"text": "Possibly dead Python function: update_ers"}, "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-bf51531c556ec27d", "name": "Possibly dead Python function: nass_probe", "shortDescription": {"text": "Possibly dead Python function: nass_probe"}, "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-2fa43cb4f63e9204", "name": "Possibly dead Python function: ers_probe", "shortDescription": {"text": "Possibly dead Python function: ers_probe"}, "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-00e77e910d947b11", "name": "Possibly dead Python function: insert_or_ignore_rows", "shortDescription": {"text": "Possibly dead Python function: insert_or_ignore_rows"}, "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-9e70038766b945a6", "name": "Possibly dead Python function: export_csv", "shortDescription": {"text": "Possibly dead Python function: export_csv"}, "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-c43670446ef3565b", "name": "Possibly dead Python function: fetch_recent_ams_hog_rows", "shortDescription": {"text": "Possibly dead Python function: fetch_recent_ams_hog_rows"}, "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-9d971c163a7bb720", "name": "Possibly dead Python function: fetch_report_text", "shortDescription": {"text": "Possibly dead Python function: fetch_report_text"}, "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-4e615104337dada5", "name": "Possibly dead Python function: fetch_commodity", "shortDescription": {"text": "Possibly dead Python function: fetch_commodity"}, "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-eafc4e0479c3bcb7", "name": "Insecure pattern 'direct_innerhtml_assignment' in docs/assets/pork-dashboard.js:180", "shortDescription": {"text": "Insecure pattern 'direct_innerhtml_assignment' in docs/assets/pork-dashboard.js:180"}, "fullDescription": {"text": "Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-0fa48b8e5776dec6", "name": "Insecure pattern 'direct_innerhtml_assignment' in docs/assets/dashboard-common.js:687", "shortDescription": {"text": "Insecure pattern 'direct_innerhtml_assignment' in docs/assets/dashboard-common.js:687"}, "fullDescription": {"text": "Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6372cebde0220094", "name": "No auth library detected", "shortDescription": {"text": "No auth library detected"}, "fullDescription": {"text": "The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-4601e3ad3bb28677", "name": "No CI/CD pipelines detected", "shortDescription": {"text": "No CI/CD pipelines detected"}, "fullDescription": {"text": "No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints."}, "properties": {"scanner": "scanner-primary", "layer": "cicd", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-a78ee1da716844bc", "name": "Very large file: docs/assets/pork-dashboard.js (1504 lines)", "shortDescription": {"text": "Very large file: docs/assets/pork-dashboard.js (1504 lines)"}, "fullDescription": {"text": "Files with >800 lines often hide complexity hotspots and discourage tests."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-6893a6c8b0861585", "name": "Very low test-to-source ratio", "shortDescription": {"text": "Very low test-to-source ratio"}, "fullDescription": {"text": "0 test file(s) for 22 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "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 101 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-b9088664ace7f748", "name": "Composite production-readiness gap", "shortDescription": {"text": "Composite production-readiness gap"}, "fullDescription": {"text": "Multiple low-cost hardening controls are missing together: license, ci, tests. 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": "medium", "confidence": 1.0}}, {"id": "scanner-b8c94e714d4a5871", "name": "Commented-code block (7 lines) in src/porkchartbook/orchestrate.py:49", "shortDescription": {"text": "Commented-code block (7 lines) in src/porkchartbook/orchestrate.py:49"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-e4b1eee101a2d60b", "name": "Network/subprocess call without timeout or try/except \u2014 src/porkchartbook/orchestrate.py:208", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 src/porkchartbook/orchestrate.py:208"}, "fullDescription": {"text": "`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-25e2597d984355e9", "name": "Commented-code block (5 lines) in src/porkchartbook/schema.py:141", "shortDescription": {"text": "Commented-code block (5 lines) in src/porkchartbook/schema.py:141"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-7dfe9d2426705e69", "name": "Network/subprocess call without timeout or try/except \u2014 src/porkchartbook/clients/mmn_client.py:59", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 src/porkchartbook/clients/mmn_client.py:59"}, "fullDescription": {"text": "`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6455423211bac913", "name": "Commented-code block (5 lines) in docs/assets/pork-dashboard.js:739", "shortDescription": {"text": "Commented-code block (5 lines) in docs/assets/pork-dashboard.js:739"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "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:\nsrc/porkchartbook/db.py:upsert_rows, src/porkchartbook/db.py:insert_or_ignore_rows\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/24860"}, "properties": {"repository": "c-downey-1/porkchartbook", "repoUrl": "https://github.com/c-downey-1/porkchartbook", "branch": "main"}, "results": [{"ruleId": "scanner-579664422932ab92", "level": "note", "message": {"text": "Possibly dead Python function: update_ers"}, "properties": {"repobilityId": "09cdf0a7d1b6429f", "scanner": "scanner-primary", "fingerprint": "579664422932ab92", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/ingest.py:316"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-bf51531c556ec27d", "level": "note", "message": {"text": "Possibly dead Python function: nass_probe"}, "properties": {"repobilityId": "4ef779696d6ff423", "scanner": "scanner-primary", "fingerprint": "bf51531c556ec27d", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/probes.py:35"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-2fa43cb4f63e9204", "level": "note", "message": {"text": "Possibly dead Python function: ers_probe"}, "properties": {"repobilityId": "5ce38037dc407aaa", "scanner": "scanner-primary", "fingerprint": "2fa43cb4f63e9204", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/probes.py:75"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-00e77e910d947b11", "level": "note", "message": {"text": "Possibly dead Python function: insert_or_ignore_rows"}, "properties": {"repobilityId": "fe9328d2b95bf7fc", "scanner": "scanner-primary", "fingerprint": "00e77e910d947b11", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/db.py:39"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-9e70038766b945a6", "level": "note", "message": {"text": "Possibly dead Python function: export_csv"}, "properties": {"repobilityId": "3f8c3565993e6425", "scanner": "scanner-primary", "fingerprint": "9e70038766b945a6", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/db.py:136"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-c43670446ef3565b", "level": "note", "message": {"text": "Possibly dead Python function: fetch_recent_ams_hog_rows"}, "properties": {"repobilityId": "ccadd4c6419a8a25", "scanner": "scanner-primary", "fingerprint": "c43670446ef3565b", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/clients/ams_hog_client.py:158"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-9d971c163a7bb720", "level": "note", "message": {"text": "Possibly dead Python function: fetch_report_text"}, "properties": {"repobilityId": "5a8851eb81518138", "scanner": "scanner-primary", "fingerprint": "9d971c163a7bb720", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/clients/mmn_client.py:76"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-4e615104337dada5", "level": "note", "message": {"text": "Possibly dead Python function: fetch_commodity"}, "properties": {"repobilityId": "c1c1f7c37473c73e", "scanner": "scanner-primary", "fingerprint": "4e615104337dada5", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/porkchartbook/clients/nass_client.py:119"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-eafc4e0479c3bcb7", "level": "warning", "message": {"text": "Insecure pattern 'direct_innerhtml_assignment' in docs/assets/pork-dashboard.js:180"}, "properties": {"repobilityId": "753486cec7807a67", "scanner": "scanner-primary", "fingerprint": "eafc4e0479c3bcb7", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "direct_innerhtml_assignment"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "docs/assets/pork-dashboard.js"}, "region": {"startLine": 180}}}]}, {"ruleId": "scanner-0fa48b8e5776dec6", "level": "warning", "message": {"text": "Insecure pattern 'direct_innerhtml_assignment' in docs/assets/dashboard-common.js:687"}, "properties": {"repobilityId": "941173d0ab24eebd", "scanner": "scanner-primary", "fingerprint": "0fa48b8e5776dec6", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "direct_innerhtml_assignment"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "docs/assets/dashboard-common.js"}, "region": {"startLine": 687}}}]}, {"ruleId": "scanner-6372cebde0220094", "level": "warning", "message": {"text": "No auth library detected"}, "properties": {"repobilityId": "a5b6035a5bbf8054", "scanner": "scanner-primary", "fingerprint": "6372cebde0220094", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["coverage", "auth"]}}, {"ruleId": "scanner-4601e3ad3bb28677", "level": "warning", "message": {"text": "No CI/CD pipelines detected"}, "properties": {"repobilityId": "c3ee439bce2bc51e", "scanner": "scanner-primary", "fingerprint": "4601e3ad3bb28677", "layer": "cicd", "severity": "medium", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-a78ee1da716844bc", "level": "note", "message": {"text": "Very large file: docs/assets/pork-dashboard.js (1504 lines)"}, "properties": {"repobilityId": "c49a1782afd083f9", "scanner": "scanner-primary", "fingerprint": "a78ee1da716844bc", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["complexity"]}}, {"ruleId": "scanner-6893a6c8b0861585", "level": "warning", "message": {"text": "Very low test-to-source ratio"}, "properties": {"repobilityId": "54a7de3f06314bf0", "scanner": "scanner-primary", "fingerprint": "6893a6c8b0861585", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["tests", "coverage"]}}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "28085cdd3eeea7ec", "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": "bebff9ad586963f8", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "warning", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "7297637975a386d1", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["production-readiness", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-b8c94e714d4a5871", "level": "none", "message": {"text": "Commented-code block (7 lines) in src/porkchartbook/orchestrate.py:49"}, "properties": {"repobilityId": "37fe269b0a680f94", "scanner": "scanner-primary", "fingerprint": "b8c94e714d4a5871", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-e4b1eee101a2d60b", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 src/porkchartbook/orchestrate.py:208"}, "properties": {"repobilityId": "56fbc47fbbc40768", "scanner": "scanner-primary", "fingerprint": "e4b1eee101a2d60b", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-25e2597d984355e9", "level": "none", "message": {"text": "Commented-code block (5 lines) in src/porkchartbook/schema.py:141"}, "properties": {"repobilityId": "e73e396510d9eb48", "scanner": "scanner-primary", "fingerprint": "25e2597d984355e9", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-7dfe9d2426705e69", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 src/porkchartbook/clients/mmn_client.py:59"}, "properties": {"repobilityId": "3740400a0a530074", "scanner": "scanner-primary", "fingerprint": "7dfe9d2426705e69", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-6455423211bac913", "level": "none", "message": {"text": "Commented-code block (5 lines) in docs/assets/pork-dashboard.js:739"}, "properties": {"repobilityId": "b12723834a6991cc", "scanner": "scanner-primary", "fingerprint": "6455423211bac913", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "9d008b0945e44e1e", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}]}]}