addedOutput schema / $defs
Added value: +{
+ "DependencyUpgrade": {
+ "additionalProperties": true,
+ "properties": {
+ "advisories": {
+ "description": "The advisories it clears, up to 25.",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": "Advisories",
+ "type": "array"
+ },
+ "files": {
+ "description": "The manifests or lockfiles to change, up to 5.",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": "Files",
+ "type": "array"
+ },
+ "findings": {
+ "description": "How many findings this one upgrade clears.",
+ "title": "Findings",
+ "type": "integer"
+ },
+ "fixed_version": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version that clears these advisories.",
+ "title": "Fixed Version"
+ },
+ "installed_version": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version installed now.",
+ "title": "Installed Version"
+ },
+ "major_upgrade": {
+ "description": "True when that version is a new major release.",
+ "title": "Major Upgrade",
+ "type": "boolean"
+ },
+ "package": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The package to upgrade.",
+ "title": "Package"
+ }
+ },
+ "required": [
+ "package",
+ "installed_version",
+ "fixed_version",
+ "major_upgrade",
+ "findings",
+ "advisories",
+ "files"
+ ],
+ "title": "DependencyUpgrade",
+ "type": "object"
+ },
+ "FindingItem": {
+ "additionalProperties": true,
+ "properties": {
+ "category": {
+ "description": "The kind of finding, such as code, secret or dependency.",
+ "title": "Category",
+ "type": "string"
+ },
+ "file_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The file, relative to the repository root.",
+ "title": "File Path"
+ },
+ "fix": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How to fix it. Absent when guidance is locked.",
+ "title": "Fix"
+ },
+ "fixed_version": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a dependency: the lowest version that fixes it.",
+ "title": "Fixed Version"
+ },
+ "id": {
+ "description": "The finding's id.",
+ "title": "Id",
+ "type": "string"
+ },
+ "installed_version": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a dependency: the version installed.",
+ "title": "Installed Version"
+ },
+ "line": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The line, when the finding has one.",
+ "title": "Line"
+ },
+ "major_upgrade": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a dependency: true when the fix needs a new major version.",
+ "title": "Major Upgrade"
+ },
+ "message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What is wrong and why it matters.",
+ "title": "Message"
+ },
+ "package": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a dependency: the package to upgrade.",
+ "title": "Package"
+ },
+ "rule_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The rule that matched.",
+ "title": "Rule Id"
+ },
+ "scan_id": {
+ "description": "The scan it came from.",
+ "title": "Scan Id",
+ "type": "string"
+ },
+ "secret": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Secret"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a secret: where it was seen."
+ },
+ "severity": {
+ "description": "CRITICAL, HIGH, MEDIUM or LOW.",
+ "title": "Severity",
+ "type": "string"
+ },
+ "severity_reason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why it has this severity.",
+ "title": "Severity Reason"
+ },
+ "status": {
+ "description": "Its triage state, such as open.",
+ "title": "Status",
+ "type": "string"
+ },
+ "verification_state": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "How far the finding was checked, such as detected or ai_reviewed.",
+ "title": "Verification State"
+ }
+ },
+ "required": [
+ "id",
+ "scan_id",
+ "rule_id",
+ "file_path",
+ "line",
+ "severity",
+ "category",
+ "message",
+ "status",
+ "verification_state"
+ ],
+ "title": "FindingItem",
+ "type": "object"
+ },
+ "Secret": {
+ "additionalProperties": true,
+ "properties": {
+ "found_in_commit": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The commit it was seen in, when it is only in git history.",
+ "title": "Found In Commit"
+ },
+ "kind": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The kind of secret, such as an API key type.",
+ "title": "Kind"
+ },
+ "proved_live": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "True when Sentrint confirmed it still works.",
+ "title": "Proved Live"
+ },
+ "value": {
+ "description": "Never the secret itself: Sentrint does not store it.",
+ "title": "Value",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "proved_live",
+ "found_in_commit",
+ "value"
+ ],
+ "title": "Secret",
+ "type": "object"
+ }
+}