{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/organization-secret-scanning-alert", "title": "organization-secret-scanning-alert", "type": "object", "properties": { "number": { "$ref": "#/components/schemas/alert-number" }, "created_at": { "$ref": "#/components/schemas/alert-created-at" }, "updated_at": { "$ref": "#/components/schemas/nullable-alert-updated-at" }, "url": { "$ref": "#/components/schemas/alert-url" }, "html_url": { "$ref": "#/components/schemas/alert-html-url" }, "locations_url": { "type": "string", "format": "uri", "description": "The REST API URL of the code locations for this alert." }, "state": { "$ref": "#/components/schemas/secret-scanning-alert-state" }, "resolution": { "$ref": "#/components/schemas/secret-scanning-alert-resolution" }, "resolved_at": { "type": "string", "format": "date-time", "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "nullable": true }, "resolved_by": { "$ref": "#/components/schemas/nullable-simple-user" }, "secret_type": { "type": "string", "description": "The type of secret that secret scanning detected." }, "secret_type_display_name": { "type": "string", "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Secret scanning patterns](https://docs.github.com/enterprise-server@3.9/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security).\"" }, "secret": { "type": "string", "description": "The secret that was detected." }, "repository": { "$ref": "#/components/schemas/simple-repository" }, "push_protection_bypassed": { "type": "boolean", "description": "Whether push protection was bypassed for the detected secret.", "nullable": true }, "push_protection_bypassed_by": { "$ref": "#/components/schemas/nullable-simple-user" }, "push_protection_bypassed_at": { "type": "string", "format": "date-time", "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "nullable": true }, "resolution_comment": { "type": "string", "description": "The comment that was optionally added when this alert was closed", "nullable": true } } }