Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar | 1 | { |
| 2 | "$schema": "https://json.schemastore.org/sarif-2.1.0.json", | |
| 3 | "version": "2.1.0", | |
| 4 | "runs": [ | |
| 5 | { | |
| 6 | "tool": { | |
| 7 | "driver": { | |
| 8 | "name": "CodeQL", | |
| 9 | "organization": "GitHub", | |
| 10 | "semanticVersion": "2.19.3", | |
| 11 | "notifications": [], | |
| 12 | "rules": [ | |
| 13 | { | |
| 14 | "id": "js/sql-injection", | |
| 15 | "name": "js/sql-injection", | |
| 16 | "shortDescription": { "text": "Database query built from user-controlled sources" }, | |
| 17 | "fullDescription": { "text": "Building a database query from user-controlled sources is vulnerable to insertion of malicious code by the user." }, | |
| 18 | "defaultConfiguration": { "enabled": true, "level": "error" }, | |
| 19 | "help": { | |
| 20 | "text": "# Database query built from user-controlled sources\nUse parameterized queries.", | |
| 21 | "markdown": "# Database query built from user-controlled sources\nUse parameterized queries." | |
| 22 | }, | |
| 23 | "properties": { | |
| 24 | "tags": ["security", "external/cwe/cwe-089", "external/cwe/cwe-090", "external/cwe/cwe-943"], | |
| 25 | "description": "Building a database query from user-controlled sources is vulnerable to insertion of malicious code by the user.", | |
| 26 | "id": "js/sql-injection", | |
| 27 | "kind": "path-problem", | |
| 28 | "name": "Database query built from user-controlled sources", | |
| 29 | "precision": "high", | |
| 30 | "problem.severity": "error", | |
| 31 | "security-severity": "8.8" | |
| 32 | } | |
| 33 | }, | |
| 34 | { | |
| 35 | "id": "js/unused-local-variable", | |
| 36 | "name": "js/unused-local-variable", | |
| 37 | "shortDescription": { "text": "Unused variable, import, function or class" }, | |
| 38 | "fullDescription": { "text": "Unused variables, imports, functions or classes may be a symptom of a bug and should be examined carefully." }, | |
| 39 | "defaultConfiguration": { "enabled": true, "level": "note" }, | |
| 40 | "properties": { | |
| 41 | "tags": ["maintainability"], | |
| 42 | "kind": "problem", | |
| 43 | "precision": "very-high", | |
| 44 | "problem.severity": "recommendation" | |
| 45 | } | |
| 46 | } | |
| 47 | ] | |
| 48 | }, | |
| 49 | "extensions": [ | |
| 50 | { | |
| 51 | "name": "codeql/javascript-queries", | |
| 52 | "semanticVersion": "1.2.3+de325133c7a95d84489acdf5a6ced07886ff5c6d", | |
| 53 | "rules": [ | |
| 54 | { | |
| 55 | "id": "js/clear-text-logging", | |
| 56 | "name": "js/clear-text-logging", | |
| 57 | "shortDescription": { "text": "Clear-text logging of sensitive information" }, | |
| 58 | "defaultConfiguration": { "enabled": true, "level": "error" }, | |
| 59 | "messageStrings": { | |
| 60 | "default": { "text": "This logs sensitive data returned by {0} as clear text." } | |
| 61 | }, | |
| 62 | "properties": { | |
| 63 | "tags": ["security", "external/cwe/cwe-312"], | |
| 64 | "precision": "high", | |
| 65 | "security-severity": "7.5" | |
| 66 | } | |
| 67 | } | |
| 68 | ] | |
| 69 | } | |
| 70 | ] | |
| 71 | }, | |
| 72 | "invocations": [{ "toolExecutionNotifications": [], "executionSuccessful": true }], | |
| 73 | "artifacts": [ | |
| 74 | { "location": { "uri": "src/server.js", "uriBaseId": "%SRCROOT%", "index": 0 } }, | |
| 75 | { "location": { "uri": "src/log.js", "uriBaseId": "%SRCROOT%", "index": 1 } } | |
| 76 | ], | |
| 77 | "results": [ | |
| 78 | { | |
| 79 | "ruleId": "js/sql-injection", | |
| 80 | "ruleIndex": 0, | |
| 81 | "rule": { "id": "js/sql-injection", "index": 0 }, | |
| 82 | "message": { "text": "This query string depends on a user-provided value." }, | |
| 83 | "locations": [ | |
| 84 | { | |
| 85 | "physicalLocation": { | |
| 86 | "artifactLocation": { "uri": "src/server.js", "uriBaseId": "%SRCROOT%", "index": 0 }, | |
| 87 | "region": { "startLine": 12, "startColumn": 19, "endColumn": 62 } | |
| 88 | } | |
| 89 | } | |
| 90 | ], | |
| 91 | "partialFingerprints": { "primaryLocationLineHash": "b4f5e2c3a8ae2c7d:1", "primaryLocationStartColumnFingerprint": "14" } | |
| 92 | }, | |
| 93 | { | |
| 94 | "ruleId": "js/unused-local-variable", | |
| 95 | "ruleIndex": 1, | |
| 96 | "rule": { "id": "js/unused-local-variable", "index": 1 }, | |
| 97 | "message": { "text": "Unused variable unused." }, | |
| 98 | "locations": [ | |
| 99 | { | |
| 100 | "physicalLocation": { | |
| 101 | "artifactLocation": { "uri": "src/server.js", "uriBaseId": "%SRCROOT%", "index": 0 }, | |
| 102 | "region": { "startLine": 17, "startColumn": 5, "endColumn": 15 } | |
| 103 | } | |
| 104 | } | |
| 105 | ], | |
| 106 | "partialFingerprints": { "primaryLocationLineHash": "1d4c1d7a1f4e0d55:1", "primaryLocationStartColumnFingerprint": "0" } | |
| 107 | }, | |
| 108 | { | |
| 109 | "ruleId": "js/clear-text-logging", | |
| 110 | "rule": { "id": "js/clear-text-logging", "index": 0, "toolComponent": { "index": 0 } }, | |
| 111 | "message": { "id": "default", "arguments": ["password"] }, | |
| 112 | "locations": [ | |
| 113 | { | |
| 114 | "physicalLocation": { | |
| 115 | "artifactLocation": { "uri": "src/log.js", "uriBaseId": "%SRCROOT%", "index": 1 }, | |
| 116 | "region": { "startLine": 4, "startColumn": 15, "endColumn": 23 } | |
| 117 | } | |
| 118 | } | |
| 119 | ], | |
| 120 | "partialFingerprints": { "primaryLocationLineHash": "8a1bd5ca7fd6e9f2:1", "primaryLocationStartColumnFingerprint": "10" } | |
| 121 | } | |
| 122 | ], | |
| 123 | "automationDetails": { "id": "/language:javascript/" }, | |
| 124 | "columnKind": "utf16CodeUnits", | |
| 125 | "properties": { "semmle.formatSpecifier": "sarif-latest" } | |
| 126 | } | |
| 127 | ] | |
| 128 | } |