diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.json b/descriptions/api.github.com/api.github.com.2022-11-28.json index bb59d76ec..5883af1ae 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions/api.github.com/api.github.com.2022-11-28.json @@ -67004,7 +67004,7 @@ "/repos/{owner}/{repo}/secret-scanning/scan-history": { "get": { "summary": "Get secret scanning scan history for a repository", - "description": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", + "description": "Lists the latest default incremental and backfill scans by type for a repository.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", "tags": [ "secret-scanning" ], @@ -119729,11 +119729,15 @@ ] }, "options": { - "description": "Options for single select fields. Only applicable when updating single_select fields.", + "description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.", "type": "array", "items": { "type": "object", "properties": { + "id": { + "description": "The id of an existing option to retain or update. Omit this when creating a new option.", + "type": "integer" + }, "name": { "description": "Name of the option.", "type": "string" @@ -139986,6 +139990,12 @@ } ] } + }, + "generic_secrets_backfill_scans": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secret-scanning-scan" + } } } }, @@ -314426,6 +314436,14 @@ "pattern_slug": "my-custom-pattern", "pattern_scope": "organization" } + ], + "generic_secrets_backfill_scans": [ + { + "type": "git", + "status": "completed", + "started_at": "2024-10-07T02:47:00Z", + "completed_at": "2024-10-07T02:55:00Z" + } ] } }, diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.yaml b/descriptions/api.github.com/api.github.com.2022-11-28.yaml index e3addb94e..7ccde271a 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions/api.github.com/api.github.com.2022-11-28.yaml @@ -48840,10 +48840,10 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. + Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] - > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)." + > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -87696,11 +87696,19 @@ components: - all options: description: Options for single select fields. Only applicable when updating - single_select fields. + single_select fields. When provided, this array **replaces** the entire + existing set of options rather than adding to or updating individual options. + To retain or update an existing option, include it in the array with its + `id`. Options sent without an `id` are treated as new options and may + cause existing options to be deleted and recreated. type: array items: type: object properties: + id: + description: The id of an existing option to retain or update. Omit + this when creating a new option. + type: integer name: description: Name of the option. type: string @@ -103260,6 +103268,10 @@ components: type: string description: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + generic_secrets_backfill_scans: + type: array + items: + "$ref": "#/components/schemas/secret-scanning-scan" repository-advisory-create: type: object properties: @@ -237807,6 +237819,11 @@ components: completed_at: '2024-10-07T02:55:00Z' pattern_slug: my-custom-pattern pattern_scope: organization + generic_secrets_backfill_scans: + - type: git + status: completed + started_at: '2024-10-07T02:47:00Z' + completed_at: '2024-10-07T02:55:00Z' repository-advisory: value: ghsa_id: GHSA-abcd-1234-efgh diff --git a/descriptions/api.github.com/api.github.com.2026-03-10.json b/descriptions/api.github.com/api.github.com.2026-03-10.json index 11ccf83a9..d155a3fd2 100644 --- a/descriptions/api.github.com/api.github.com.2026-03-10.json +++ b/descriptions/api.github.com/api.github.com.2026-03-10.json @@ -66916,7 +66916,7 @@ "/repos/{owner}/{repo}/secret-scanning/scan-history": { "get": { "summary": "Get secret scanning scan history for a repository", - "description": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", + "description": "Lists the latest default incremental and backfill scans by type for a repository.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", "tags": [ "secret-scanning" ], @@ -119220,11 +119220,15 @@ ] }, "options": { - "description": "Options for single select fields. Only applicable when updating single_select fields.", + "description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.", "type": "array", "items": { "type": "object", "properties": { + "id": { + "description": "The id of an existing option to retain or update. Omit this when creating a new option.", + "type": "integer" + }, "name": { "description": "Name of the option.", "type": "string" @@ -139391,6 +139395,12 @@ } ] } + }, + "generic_secrets_backfill_scans": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secret-scanning-scan" + } } } }, @@ -313675,6 +313685,14 @@ "pattern_slug": "my-custom-pattern", "pattern_scope": "organization" } + ], + "generic_secrets_backfill_scans": [ + { + "type": "git", + "status": "completed", + "started_at": "2024-10-07T02:47:00Z", + "completed_at": "2024-10-07T02:55:00Z" + } ] } }, diff --git a/descriptions/api.github.com/api.github.com.2026-03-10.yaml b/descriptions/api.github.com/api.github.com.2026-03-10.yaml index a47b111b0..1fbccbb1f 100644 --- a/descriptions/api.github.com/api.github.com.2026-03-10.yaml +++ b/descriptions/api.github.com/api.github.com.2026-03-10.yaml @@ -48766,10 +48766,10 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. + Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] - > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)." + > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -87297,11 +87297,19 @@ components: - all options: description: Options for single select fields. Only applicable when updating - single_select fields. + single_select fields. When provided, this array **replaces** the entire + existing set of options rather than adding to or updating individual options. + To retain or update an existing option, include it in the array with its + `id`. Options sent without an `id` are treated as new options and may + cause existing options to be deleted and recreated. type: array items: type: object properties: + id: + description: The id of an existing option to retain or update. Omit + this when creating a new option. + type: integer name: description: Name of the option. type: string @@ -102790,6 +102798,10 @@ components: type: string description: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + generic_secrets_backfill_scans: + type: array + items: + "$ref": "#/components/schemas/secret-scanning-scan" repository-advisory-create: type: object properties: @@ -237133,6 +237145,11 @@ components: completed_at: '2024-10-07T02:55:00Z' pattern_slug: my-custom-pattern pattern_scope: organization + generic_secrets_backfill_scans: + - type: git + status: completed + started_at: '2024-10-07T02:47:00Z' + completed_at: '2024-10-07T02:55:00Z' repository-advisory: value: ghsa_id: GHSA-abcd-1234-efgh diff --git a/descriptions/api.github.com/api.github.com.json b/descriptions/api.github.com/api.github.com.json index 73609fb5e..428e99851 100644 --- a/descriptions/api.github.com/api.github.com.json +++ b/descriptions/api.github.com/api.github.com.json @@ -67306,7 +67306,7 @@ "/repos/{owner}/{repo}/secret-scanning/scan-history": { "get": { "summary": "Get secret scanning scan history for a repository", - "description": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", + "description": "Lists the latest default incremental and backfill scans by type for a repository.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", "tags": [ "secret-scanning" ], @@ -120487,11 +120487,15 @@ ] }, "options": { - "description": "Options for single select fields. Only applicable when updating single_select fields.", + "description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.", "type": "array", "items": { "type": "object", "properties": { + "id": { + "description": "The id of an existing option to retain or update. Omit this when creating a new option.", + "type": "integer" + }, "name": { "description": "Name of the option.", "type": "string" @@ -141296,6 +141300,12 @@ } ] } + }, + "generic_secrets_backfill_scans": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secret-scanning-scan" + } } } }, @@ -316533,6 +316543,14 @@ "pattern_slug": "my-custom-pattern", "pattern_scope": "organization" } + ], + "generic_secrets_backfill_scans": [ + { + "type": "git", + "status": "completed", + "started_at": "2024-10-07T02:47:00Z", + "completed_at": "2024-10-07T02:55:00Z" + } ] } }, diff --git a/descriptions/api.github.com/api.github.com.yaml b/descriptions/api.github.com/api.github.com.yaml index 9b35f1afc..395b24880 100644 --- a/descriptions/api.github.com/api.github.com.yaml +++ b/descriptions/api.github.com/api.github.com.yaml @@ -49025,10 +49025,10 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. + Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] - > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)." + > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -88189,11 +88189,19 @@ components: - all options: description: Options for single select fields. Only applicable when updating - single_select fields. + single_select fields. When provided, this array **replaces** the entire + existing set of options rather than adding to or updating individual options. + To retain or update an existing option, include it in the array with its + `id`. Options sent without an `id` are treated as new options and may + cause existing options to be deleted and recreated. type: array items: type: object properties: + id: + description: The id of an existing option to retain or update. Omit + this when creating a new option. + type: integer name: description: Name of the option. type: string @@ -104210,6 +104218,10 @@ components: type: string description: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + generic_secrets_backfill_scans: + type: array + items: + "$ref": "#/components/schemas/secret-scanning-scan" repository-advisory-create: type: object properties: @@ -239194,6 +239206,11 @@ components: completed_at: '2024-10-07T02:55:00Z' pattern_slug: my-custom-pattern pattern_scope: organization + generic_secrets_backfill_scans: + - type: git + status: completed + started_at: '2024-10-07T02:47:00Z' + completed_at: '2024-10-07T02:55:00Z' repository-advisory: value: ghsa_id: GHSA-abcd-1234-efgh diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index f27a0fd44..c01d00785 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -140118,11 +140118,15 @@ ] }, "options": { - "description": "Options for single select fields. Only applicable when updating single_select fields.", + "description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.", "type": "array", "items": { "type": "object", "properties": { + "id": { + "description": "The id of an existing option to retain or update. Omit this when creating a new option.", + "type": "integer" + }, "name": { "description": "Name of the option.", "type": "string" @@ -533361,7 +533365,7 @@ "/repos/{owner}/{repo}/secret-scanning/scan-history": { "get": { "summary": "Get secret scanning scan history for a repository", - "description": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", + "description": "Lists the latest default incremental and backfill scans by type for a repository.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", "tags": [ "secret-scanning" ], @@ -533554,6 +533558,35 @@ } ] } + }, + "generic_secrets_backfill_scans": { + "type": "array", + "items": { + "description": "Information on a single scan performed by secret scanning on the repository", + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of scan" + }, + "status": { + "type": "string", + "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\"" + }, + "completed_at": { + "type": "string", + "format": "date-time", + "description": "The time that the scan was completed. Empty if the scan is running", + "nullable": true + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "The time that the scan was started. Empty if the scan is pending", + "nullable": true + } + } + } } } }, @@ -533612,6 +533645,14 @@ "pattern_slug": "my-custom-pattern", "pattern_scope": "organization" } + ], + "generic_secrets_backfill_scans": [ + { + "type": "git", + "status": "completed", + "started_at": "2024-10-07T02:47:00Z", + "completed_at": "2024-10-07T02:55:00Z" + } ] } } diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index ab6ed0474..6b326f384 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -37032,11 +37032,20 @@ paths: - all options: description: Options for single select fields. Only applicable when - updating single_select fields. + updating single_select fields. When provided, this array **replaces** + the entire existing set of options rather than adding to or updating + individual options. To retain or update an existing option, include + it in the array with its `id`. Options sent without an `id` are + treated as new options and may cause existing options to be deleted + and recreated. type: array items: type: object properties: + id: + description: The id of an existing option to retain or update. + Omit this when creating a new option. + type: integer name: description: Name of the option. type: string @@ -95558,10 +95567,10 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. + Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] - > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)." + > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -95632,6 +95641,9 @@ paths: type: string description: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + generic_secrets_backfill_scans: + type: array + items: *660 examples: default: value: @@ -95670,6 +95682,11 @@ paths: completed_at: '2024-10-07T02:55:00Z' pattern_slug: my-custom-pattern pattern_scope: organization + generic_secrets_backfill_scans: + - type: git + status: completed + started_at: '2024-10-07T02:47:00Z' + completed_at: '2024-10-07T02:55:00Z' x-github: githubCloudOnly: false enabledForGitHubApps: true diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json index ebf2f2843..81618ca21 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json @@ -136364,11 +136364,15 @@ ] }, "options": { - "description": "Options for single select fields. Only applicable when updating single_select fields.", + "description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.", "type": "array", "items": { "type": "object", "properties": { + "id": { + "description": "The id of an existing option to retain or update. Omit this when creating a new option.", + "type": "integer" + }, "name": { "description": "Name of the option.", "type": "string" @@ -523043,7 +523047,7 @@ "/repos/{owner}/{repo}/secret-scanning/scan-history": { "get": { "summary": "Get secret scanning scan history for a repository", - "description": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", + "description": "Lists the latest default incremental and backfill scans by type for a repository.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", "tags": [ "secret-scanning" ], @@ -523236,6 +523240,35 @@ } ] } + }, + "generic_secrets_backfill_scans": { + "type": "array", + "items": { + "description": "Information on a single scan performed by secret scanning on the repository", + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of scan" + }, + "status": { + "type": "string", + "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\"" + }, + "completed_at": { + "type": "string", + "format": "date-time", + "description": "The time that the scan was completed. Empty if the scan is running", + "nullable": true + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "The time that the scan was started. Empty if the scan is pending", + "nullable": true + } + } + } } } }, @@ -523294,6 +523327,14 @@ "pattern_slug": "my-custom-pattern", "pattern_scope": "organization" } + ], + "generic_secrets_backfill_scans": [ + { + "type": "git", + "status": "completed", + "started_at": "2024-10-07T02:47:00Z", + "completed_at": "2024-10-07T02:55:00Z" + } ] } } diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml index 96020763a..0503ce1b1 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml @@ -36688,11 +36688,20 @@ paths: - all options: description: Options for single select fields. Only applicable when - updating single_select fields. + updating single_select fields. When provided, this array **replaces** + the entire existing set of options rather than adding to or updating + individual options. To retain or update an existing option, include + it in the array with its `id`. Options sent without an `id` are + treated as new options and may cause existing options to be deleted + and recreated. type: array items: type: object properties: + id: + description: The id of an existing option to retain or update. + Omit this when creating a new option. + type: integer name: description: Name of the option. type: string @@ -95112,10 +95121,10 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. + Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] - > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)." + > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -95186,6 +95195,9 @@ paths: type: string description: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + generic_secrets_backfill_scans: + type: array + items: *660 examples: default: value: @@ -95224,6 +95236,11 @@ paths: completed_at: '2024-10-07T02:55:00Z' pattern_slug: my-custom-pattern pattern_scope: organization + generic_secrets_backfill_scans: + - type: git + status: completed + started_at: '2024-10-07T02:47:00Z' + completed_at: '2024-10-07T02:55:00Z' x-github: githubCloudOnly: false enabledForGitHubApps: true diff --git a/descriptions/api.github.com/dereferenced/api.github.com.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.deref.json index e7bcd1d28..06c3d7498 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.json @@ -142628,11 +142628,15 @@ ] }, "options": { - "description": "Options for single select fields. Only applicable when updating single_select fields.", + "description": "Options for single select fields. Only applicable when updating single_select fields. When provided, this array **replaces** the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its `id`. Options sent without an `id` are treated as new options and may cause existing options to be deleted and recreated.", "type": "array", "items": { "type": "object", "properties": { + "id": { + "description": "The id of an existing option to retain or update. Omit this when creating a new option.", + "type": "integer" + }, "name": { "description": "Name of the option.", "type": "string" @@ -546833,7 +546837,7 @@ "/repos/{owner}/{repo}/secret-scanning/scan-history": { "get": { "summary": "Get secret scanning scan history for a repository", - "description": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", + "description": "Lists the latest default incremental and backfill scans by type for a repository.\n\n> [!NOTE]\n> This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.", "tags": [ "secret-scanning" ], @@ -547026,6 +547030,35 @@ } ] } + }, + "generic_secrets_backfill_scans": { + "type": "array", + "items": { + "description": "Information on a single scan performed by secret scanning on the repository", + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of scan" + }, + "status": { + "type": "string", + "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\"" + }, + "completed_at": { + "type": "string", + "format": "date-time", + "description": "The time that the scan was completed. Empty if the scan is running", + "nullable": true + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "The time that the scan was started. Empty if the scan is pending", + "nullable": true + } + } + } } } }, @@ -547084,6 +547117,14 @@ "pattern_slug": "my-custom-pattern", "pattern_scope": "organization" } + ], + "generic_secrets_backfill_scans": [ + { + "type": "git", + "status": "completed", + "started_at": "2024-10-07T02:47:00Z", + "completed_at": "2024-10-07T02:55:00Z" + } ] } } diff --git a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml index 1633b769d..fa635370b 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml @@ -37351,11 +37351,20 @@ paths: - all options: description: Options for single select fields. Only applicable when - updating single_select fields. + updating single_select fields. When provided, this array **replaces** + the entire existing set of options rather than adding to or updating + individual options. To retain or update an existing option, include + it in the array with its `id`. Options sent without an `id` are + treated as new options and may cause existing options to be deleted + and recreated. type: array items: type: object properties: + id: + description: The id of an existing option to retain or update. + Omit this when creating a new option. + type: integer name: description: Name of the option. type: string @@ -96322,10 +96331,10 @@ paths: get: summary: Get secret scanning scan history for a repository description: |- - Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. + Lists the latest default incremental and backfill scans by type for a repository. > [!NOTE] - > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)." + > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security). OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. tags: @@ -96396,6 +96405,9 @@ paths: type: string description: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + generic_secrets_backfill_scans: + type: array + items: *663 examples: default: value: @@ -96434,6 +96446,11 @@ paths: completed_at: '2024-10-07T02:55:00Z' pattern_slug: my-custom-pattern pattern_scope: organization + generic_secrets_backfill_scans: + - type: git + status: completed + started_at: '2024-10-07T02:47:00Z' + completed_at: '2024-10-07T02:55:00Z' x-github: githubCloudO{"code":"deadline_exceeded","msg":"operation timed out"}