From ee0f668c3d9fca8eda7c82482589413dfdf8128f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 14:24:12 +0100 Subject: [PATCH 1/7] Enhance GitHub App webhook delivery functions to support retrieval by ID --- .../Get-GitHubAppWebhookDeliveryByID.ps1} | 29 +++++++------- .../Get-GitHubAppWebhookDeliveryByList.ps1} | 28 ++++++------- .../Webhooks/Get-GitHubAppWebhookDelivery.ps1 | 39 +++++++++++++------ 3 files changed, 54 insertions(+), 42 deletions(-) rename src/functions/private/Apps/{Get-GitHubAuthenticatedApp.ps1 => Webhooks/Get-GitHubAppWebhookDeliveryByID.ps1} (55%) rename src/functions/private/Apps/{Get-GitHubAppByName.ps1 => Webhooks/Get-GitHubAppWebhookDeliveryByList.ps1} (53%) diff --git a/src/functions/private/Apps/Get-GitHubAuthenticatedApp.ps1 b/src/functions/private/Apps/Webhooks/Get-GitHubAppWebhookDeliveryByID.ps1 similarity index 55% rename from src/functions/private/Apps/Get-GitHubAuthenticatedApp.ps1 rename to src/functions/private/Apps/Webhooks/Get-GitHubAppWebhookDeliveryByID.ps1 index c32b49a48..9d0d0be35 100644 --- a/src/functions/private/Apps/Get-GitHubAuthenticatedApp.ps1 +++ b/src/functions/private/Apps/Webhooks/Get-GitHubAppWebhookDeliveryByID.ps1 @@ -1,28 +1,30 @@ -filter Get-GitHubAuthenticatedApp { +function Get-GitHubAppWebhookDeliveryByID { <# .SYNOPSIS - Get the authenticated app + Get a delivery for an app webhook .DESCRIPTION - Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this - GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the - "[List installations for the authenticated app](https://docs.github.com/rest/apps/apps#list-installations-for-the-authenticated-app)" - endpoint. + Returns a delivery for the webhook configured for a GitHub App. You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + .EXAMPLE - Get-GitHubAuthenticatedApp + Get-GitHubAppWebhookDeliveryByID -ID 123456 - Get the authenticated app. + Returns the webhook configuration for the authenticated app. .NOTES - [Get the authenticated app](https://docs.github.com/rest/apps/apps#get-an-app) + [Get a delivery for an app webhook](https://docs.github.com/rest/apps/webhooks#get-a-delivery-for-an-app-webhook) #> - [OutputType([pscustomobject])] [CmdletBinding()] param( + # The ID of the delivery. + [Parameter(Mandatory)] + [Alias('DeliveryID', 'delivery_id')] + [string] $ID, + # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. [Parameter()] @@ -33,16 +35,14 @@ $stackPath = Get-PSCallStackPath Write-Debug "[$stackPath] - Start" $Context = Resolve-GitHubContext -Context $Context - Assert-GitHubContext -Context $Context -AuthType App + Assert-GitHubContext -Context $Context -AuthType APP } process { try { - $Context = Resolve-GitHubContext -Context $Context - $inputObject = @{ Context = $Context - APIEndpoint = '/app' + APIEndpoint = "/app/hook/deliveries/$ID" Method = 'GET' } @@ -53,6 +53,7 @@ throw $_ } } + end { Write-Debug "[$stackPath] - End" } diff --git a/src/functions/private/Apps/Get-GitHubAppByName.ps1 b/src/functions/private/Apps/Webhooks/Get-GitHubAppWebhookDeliveryByList.ps1 similarity index 53% rename from src/functions/private/Apps/Get-GitHubAppByName.ps1 rename to src/functions/private/Apps/Webhooks/Get-GitHubAppWebhookDeliveryByList.ps1 index df1b98df9..9aea3c270 100644 --- a/src/functions/private/Apps/Get-GitHubAppByName.ps1 +++ b/src/functions/private/Apps/Webhooks/Get-GitHubAppWebhookDeliveryByList.ps1 @@ -1,29 +1,24 @@ -filter Get-GitHubAppByName { +function Get-GitHubAppWebhookDeliveryByList { <# .SYNOPSIS - Get an app + List deliveries for an app webhook .DESCRIPTION - Gets a single GitHub App using the app's slug. + Returns a list of webhook deliveries for the webhook configured for a GitHub App. + + You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) + to access this endpoint. .EXAMPLE - Get-GitHubAppByName -AppSlug 'github-actions' + Get-GitHubAppWebhookDeliveryByList - Gets the GitHub App with the slug 'github-actions'. + Returns the webhook configuration for the authenticated app. .NOTES - [Get an app](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app) + [Get a webhook configuration for an app](https://docs.github.com/rest/apps/webhooks#get-a-webhook-configuration-for-an-app) #> - [OutputType([pscustomobject])] [CmdletBinding()] param( - # The AppSlug is just the URL-friendly name of a GitHub App. - # You can find this on the settings page for your GitHub App (e.g., https://github.com/settings/apps/). - # Example: 'github-actions' - [Parameter(Mandatory)] - [Alias('Name')] - [string] $AppSlug, - # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. [Parameter()] @@ -34,14 +29,14 @@ $stackPath = Get-PSCallStackPath Write-Debug "[$stackPath] - Start" $Context = Resolve-GitHubContext -Context $Context - Assert-GitHubContext -Context $Context -AuthType IAT, PAT, UAT + Assert-GitHubContext -Context $Context -AuthType APP } process { try { $inputObject = @{ Context = $Context - APIEndpoint = "/apps/$AppSlug" + APIEndpoint = '/app/hook/deliveries' Method = 'GET' } @@ -52,6 +47,7 @@ throw $_ } } + end { Write-Debug "[$stackPath] - End" } diff --git a/src/functions/public/Apps/Webhooks/Get-GitHubAppWebhookDelivery.ps1 b/src/functions/public/Apps/Webhooks/Get-GitHubAppWebhookDelivery.ps1 index a548e8e92..8b8518977 100644 --- a/src/functions/public/Apps/Webhooks/Get-GitHubAppWebhookDelivery.ps1 +++ b/src/functions/public/Apps/Webhooks/Get-GitHubAppWebhookDelivery.ps1 @@ -1,10 +1,10 @@ function Get-GitHubAppWebhookDelivery { <# .SYNOPSIS - List deliveries for an app webhook + List deliveries for an app webhook or get a delivery for an app webhook by ID. .DESCRIPTION - Returns a list of webhook deliveries for the webhook configured for a GitHub App. + Returns a list of webhook deliveries or a specific delivery for the webhook configured for a GitHub App. You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. @@ -12,13 +12,29 @@ .EXAMPLE Get-GitHubAppWebhookDelivery - Returns the webhook configuration for the authenticated app. + Returns a list of webhook deliveries for the webhook for the authenticated app. + + .EXAMPLE + Get-GitHubAppWebhookDelivery -ID 123456 + + Returns the webhook delivery with the ID `123456` for the authenticated app. .NOTES + [Get a delivery for an app webhook](https://docs.github.com/rest/apps/webhooks#get-a-delivery-for-an-app-webhook) [Get a webhook configuration for an app](https://docs.github.com/rest/apps/webhooks#get-a-webhook-configuration-for-an-app) #> - [CmdletBinding()] + [CmdletBinding(DefaultParameterSetName = '__AllParameterSets')] param( + # The ID of the delivery. + [Parameter( + Mandatory, + ParameterSetName = 'ByID', + ValueFromPipeline, + ValueFromPipelineByPropertyName + )] + [Alias('DeliveryID', 'delivery_id')] + [string] $ID, + # The context to run the command in. Used to get the details for the API call. # Can be either a string or a GitHubContext object. [Parameter()] @@ -34,14 +50,13 @@ process { try { - $inputObject = @{ - Context = $Context - APIEndpoint = '/app/hook/deliveries' - Method = 'GET' - } - - Invoke-GitHubAPI @inputObject | ForEach-Object { - Write-Output $_.Response + switch ($PSCmdlet.ParameterSetName) { + 'ByID' { + Get-GitHubAppWebhookDeliveryByID -ID $ID -Context $Context + } + '__AllParameterSets' { + Get-GitHubAppWebhookDeliveryByList -Context $Context + } } } catch { throw $_ From 0b1628777f79fabecb3b61da19fbc46046bf26f6 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 14:24:21 +0100 Subject: [PATCH 2/7] Add function to redeliver GitHub App webhook deliveries --- .../Redeliver-GitHubAppWebhookDelivery.ps1 | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/functions/public/Apps/Webhooks/Redeliver-GitHubAppWebhookDelivery.ps1 diff --git a/src/functions/public/Apps/Webhooks/Redeliver-GitHubAppWebhookDelivery.ps1 b/src/functions/public/Apps/Webhooks/Redeliver-GitHubAppWebhookDelivery.ps1 new file mode 100644 index 000000000..a837dbe87 --- /dev/null +++ b/src/functions/public/Apps/Webhooks/Redeliver-GitHubAppWebhookDelivery.ps1 @@ -0,0 +1,66 @@ +function Redeliver-GitHubAppWebhookDelivery { + <# + .SYNOPSIS + Redeliver a delivery for an app webhook + + .DESCRIPTION + Redeliver a delivery for the webhook configured for a GitHub App. + + You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) + to access this endpoint. + + .EXAMPLE + Redeliver-GitHubAppWebhookDelivery -ID 12345 + + Redelivers the delivery with the ID `12345`. + + .NOTES + [Redeliver a delivery for an app webhook](https://docs.github.com/rest/apps/webhooks#redeliver-a-delivery-for-an-app-webhook) + #> + [OutputType([void])] + [CmdletBinding(SupportsShouldProcess)] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute( + 'PSUseApprovedVerbs', '', Scope = 'Function', + Justification = 'Redeliver is the only thing that makes sense when triggering a webhook delivery again.' + )] + param( + # The ID of the delivery. + [Parameter(Mandatory)] + [Alias('DeliveryID', 'delivery_id')] + [string] $ID, + + # The context to run the command in. Used to get the details for the API call. + # Can be either a string or a GitHubContext object. + [Parameter()] + [object] $Context = (Get-GitHubContext) + ) + + begin { + $stackPath = Get-PSCallStackPath + Write-Debug "[$stackPath] - Start" + $Context = Resolve-GitHubContext -Context $Context + Assert-GitHubContext -Context $Context -AuthType APP + } + + process { + try { + $inputObject = @{ + Context = $Context + APIEndpoint = "/app/hook/deliveries/$ID/attempts" + Method = 'post' + } + + if ($PSCmdlet.ShouldProcess('webhook delivery', 'Redeliver')) { + Invoke-GitHubAPI @inputObject | ForEach-Object { + Write-Output $_.Response + } + } + } catch { + throw $_ + } + } + + end { + Write-Debug "[$stackPath] - End" + } +} From 2907bec1e01b4b24060f3f2c4c1236446d7a8c71 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 14:24:26 +0100 Subject: [PATCH 3/7] Add function to update GitHub App webhook configuration --- .../Update-GitHubAppWebhookConfiguration.ps1 | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 diff --git a/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 b/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 new file mode 100644 index 000000000..b7d3a90b4 --- /dev/null +++ b/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 @@ -0,0 +1,84 @@ +function Update-GitHubAppWebhookConfiguration { + <# + .SYNOPSIS + Update a webhook configuration for an app + + .DESCRIPTION + Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see + "[Creating a GitHub App](/developers/apps/creating-a-github-app)." + + You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) + to access this endpoint. + + .EXAMPLE + Update-GitHubAppWebhookConfiguration -URL 'https://example.com' -ContentType 'json' -Secret 'mysecret' -InsecureSSL + + Updates the webhook configuration for the authenticated app to deliver payloads to `https://example.com` with a `json` content type + and a secret of `mysecret` disabling SSL verification when delivering payloads. + + .NOTES + [Update a webhook configuration for an app](https://docs.github.com/rest/apps/webhooks#update-a-webhook-configuration-for-an-app) + #> + [OutputType([void])] + [CmdletBinding(SupportsShouldProcess)] + param( + # The URL to which the payloads will be delivered. + [Parameter()] + [string] $URL, + + # The media type used to serialize the payloads. Supported values include `json` and `form`. + [Parameter()] + [ValidateSet('json', 'form')] + [string] $ContentType, + + # If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for delivery signature headers. + [Parameter()] + [string] $Secret, + + # Determines whether the SSL certificate of the host for url will be verified when delivering payloads. + # We strongly recommend not setting this as you are subject to man-in-the-middle and other attacks. + [switch] $InsecureSSL, + + # The context to run the command in. Used to get the details for the API call. + # Can be either a string or a GitHubContext object. + [Parameter()] + [object] $Context = (Get-GitHubContext) + ) + + begin { + $stackPath = Get-PSCallStackPath + Write-Debug "[$stackPath] - Start" + $Context = Resolve-GitHubContext -Context $Context + Assert-GitHubContext -Context $Context -AuthType APP + } + + process { + try { + $body = @{ + url = $URL + content_type = $ContentType + secret = $Secret + insecure_ssl = $InsecureSSL ? 1 : 0 + } + + $inputObject = @{ + Context = $Context + APIEndpoint = '/app/hook/config' + Method = 'PATCH' + Body = $body + } + + if ($PSCmdlet.ShouldProcess('webhook configuration', 'Update')) { + Invoke-GitHubAPI @inputObject | ForEach-Object { + Write-Output $_.Response + } + } + } catch { + throw $_ + } + } + + end { + Write-Debug "[$stackPath] - End" + } +} From eb79e3b5e14b0a6ff0ff6686a806444b4236cb81 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 14:24:46 +0100 Subject: [PATCH 4/7] Move functions to retrieve GitHub Apps by name and authenticated app into GitHub Apps folder --- .../Apps/GitHub Apps/Get-GitHubAppByName.ps1 | 58 ++++++++++++++++++ .../Get-GitHubAuthenticatedApp.ps1 | 59 +++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 src/functions/private/Apps/GitHub Apps/Get-GitHubAppByName.ps1 create mode 100644 src/functions/private/Apps/GitHub Apps/Get-GitHubAuthenticatedApp.ps1 diff --git a/src/functions/private/Apps/GitHub Apps/Get-GitHubAppByName.ps1 b/src/functions/private/Apps/GitHub Apps/Get-GitHubAppByName.ps1 new file mode 100644 index 000000000..df1b98df9 --- /dev/null +++ b/src/functions/private/Apps/GitHub Apps/Get-GitHubAppByName.ps1 @@ -0,0 +1,58 @@ +filter Get-GitHubAppByName { + <# + .SYNOPSIS + Get an app + + .DESCRIPTION + Gets a single GitHub App using the app's slug. + + .EXAMPLE + Get-GitHubAppByName -AppSlug 'github-actions' + + Gets the GitHub App with the slug 'github-actions'. + + .NOTES + [Get an app](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app) + #> + [OutputType([pscustomobject])] + [CmdletBinding()] + param( + # The AppSlug is just the URL-friendly name of a GitHub App. + # You can find this on the settings page for your GitHub App (e.g., https://github.com/settings/apps/). + # Example: 'github-actions' + [Parameter(Mandatory)] + [Alias('Name')] + [string] $AppSlug, + + # The context to run the command in. Used to get the details for the API call. + # Can be either a string or a GitHubContext object. + [Parameter()] + [object] $Context = (Get-GitHubContext) + ) + + begin { + $stackPath = Get-PSCallStackPath + Write-Debug "[$stackPath] - Start" + $Context = Resolve-GitHubContext -Context $Context + Assert-GitHubContext -Context $Context -AuthType IAT, PAT, UAT + } + + process { + try { + $inputObject = @{ + Context = $Context + APIEndpoint = "/apps/$AppSlug" + Method = 'GET' + } + + Invoke-GitHubAPI @inputObject | ForEach-Object { + Write-Output $_.Response + } + } catch { + throw $_ + } + } + end { + Write-Debug "[$stackPath] - End" + } +} diff --git a/src/functions/private/Apps/GitHub Apps/Get-GitHubAuthenticatedApp.ps1 b/src/functions/private/Apps/GitHub Apps/Get-GitHubAuthenticatedApp.ps1 new file mode 100644 index 000000000..c32b49a48 --- /dev/null +++ b/src/functions/private/Apps/GitHub Apps/Get-GitHubAuthenticatedApp.ps1 @@ -0,0 +1,59 @@ +filter Get-GitHubAuthenticatedApp { + <# + .SYNOPSIS + Get the authenticated app + + .DESCRIPTION + Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this + GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the + "[List installations for the authenticated app](https://docs.github.com/rest/apps/apps#list-installations-for-the-authenticated-app)" + endpoint. + + You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) + to access this endpoint. + + .EXAMPLE + Get-GitHubAuthenticatedApp + + Get the authenticated app. + + .NOTES + [Get the authenticated app](https://docs.github.com/rest/apps/apps#get-an-app) + #> + [OutputType([pscustomobject])] + [CmdletBinding()] + param( + # The context to run the command in. Used to get the details for the API call. + # Can be either a string or a GitHubContext object. + [Parameter()] + [object] $Context = (Get-GitHubContext) + ) + + begin { + $stackPath = Get-PSCallStackPath + Write-Debug "[$stackPath] - Start" + $Context = Resolve-GitHubContext -Context $Context + Assert-GitHubContext -Context $Context -AuthType App + } + + process { + try { + $Context = Resolve-GitHubContext -Context $Context + + $inputObject = @{ + Context = $Context + APIEndpoint = '/app' + Method = 'GET' + } + + Invoke-GitHubAPI @inputObject | ForEach-Object { + Write-Output $_.Response + } + } catch { + throw $_ + } + } + end { + Write-Debug "[$stackPath] - End" + } +} From 861dae707c890b6cf86d2e3ae711d2feb4b38744 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:26:04 +0000 Subject: [PATCH 5/7] Auto-generated changes --- Coverage.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Coverage.md b/Coverage.md index 1a59c8f47..a8c306a85 100644 --- a/Coverage.md +++ b/Coverage.md @@ -9,15 +9,15 @@ Covered functions - 156 + 159 Missing functions - 824 + 821 Coverage - 15.92% + 16.22% @@ -30,10 +30,10 @@ | `/advisories/{ghsa_id}` | | :x: | | | | | `/app` | | :white_check_mark: | | | | | `/app-manifests/{code}/conversions` | | | | :x: | | -| `/app/hook/config` | | :white_check_mark: | :x: | | | +| `/app/hook/config` | | :white_check_mark: | :white_check_mark: | | | | `/app/hook/deliveries` | | :white_check_mark: | | | | -| `/app/hook/deliveries/{delivery_id}` | | :x: | | | | -| `/app/hook/deliveries/{delivery_id}/attempts` | | | | :x: | | +| `/app/hook/deliveries/{delivery_id}` | | :white_check_mark: | | | | +| `/app/hook/deliveries/{delivery_id}/attempts` | | | | :white_check_mark: | | | `/app/installation-requests` | | :x: | | | | | `/app/installations` | | :white_check_mark: | | | | | `/app/installations/{installation_id}` | :x: | :x: | | | | From 38fb0cb37dcd12d4bda8042e43c7b9a57e3da738 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 16 Dec 2024 14:34:20 +0100 Subject: [PATCH 6/7] Fix linting issues --- .../Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 b/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 index b7d3a90b4..5bf4316c1 100644 --- a/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 +++ b/src/functions/public/Apps/Webhooks/Update-GitHubAppWebhookConfiguration.ps1 @@ -35,7 +35,7 @@ [Parameter()] [string] $Secret, - # Determines whether the SSL certificate of the host for url will be verified when delivering payloads. + # Determines whether the SSL certificate of the host for URL will be verified when delivering payloads. # We strongly recommend not setting this as you are subject to man-in-the-middle and other attacks. [switch] $InsecureSSL, From 1dda16def947d41efa71935adb8ddcaf9a0d3f67 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:05:16 +0000 Subject: [PATCH 7/7] Auto-generated changes --- Coverage.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Coverage.md b/Coverage.md index a8c306a85..e65516446 100644 --- a/Coverage.md +++ b/Coverage.md @@ -5,7 +5,7 @@ - + @@ -13,11 +13,11 @@ - + - +
Available functions980992
Covered functions
Missing functions821833
Coverage16.22%16.03%
@@ -52,6 +52,12 @@ | `/codes_of_conduct` | | :x: | | | | | `/codes_of_conduct/{key}` | | :x: | | | | | `/emojis` | | :white_check_mark: | | | | +| `/enterprises/{enterprise}/code-security/configurations` | | :x: | | :x: | | +| `/enterprises/{enterprise}/code-security/configurations/defaults` | | :x: | | | | +| `/enterprises/{enterprise}/code-security/configurations/{configuration_id}` | :x: | :x: | :x: | | | +| `/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach` | | | | :x: | | +| `/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults` | | | | | :x: | +| `/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories` | | :x: | | | | | `/enterprises/{enterprise}/dependabot/alerts` | | :x: | | | | | `/enterprises/{enterprise}/secret-scanning/alerts` | | :x: | | | | | `/events` | | :white_check_mark: | | | | @@ -348,6 +354,8 @@ | `/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest` | | | | :x: | | | `/repos/{owner}/{repo}/code-scanning/alerts` | | :x: | | | | | `/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}` | | :x: | :x: | | | +| `/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix` | | :x: | | :x: | | +| `/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits` | | | | :x: | | | `/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances` | | :x: | | | | | `/repos/{owner}/{repo}/code-scanning/analyses` | | :x: | | | | | `/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}` | :x: | :x: | | | |