From e222812b8c421df36cfd8c96d1e1ab6f18ed47fc Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 31 Oct 2023 08:17:54 +0100 Subject: [PATCH] Added a remaining file --- src/GitHub/public/Repositories/Repositories/remaining.txt | 3 +++ tools/utilities/GitHubAPI.ps1 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/GitHub/public/Repositories/Repositories/remaining.txt diff --git a/src/GitHub/public/Repositories/Repositories/remaining.txt b/src/GitHub/public/Repositories/Repositories/remaining.txt new file mode 100644 index 00000000..6fa53c87 --- /dev/null +++ b/src/GitHub/public/Repositories/Repositories/remaining.txt @@ -0,0 +1,3 @@ +Update a repository +Create a repository dispatch event +Create a repository using a template diff --git a/tools/utilities/GitHubAPI.ps1 b/tools/utilities/GitHubAPI.ps1 index 70f95bc4..50c4e088 100644 --- a/tools/utilities/GitHubAPI.ps1 +++ b/tools/utilities/GitHubAPI.ps1 @@ -21,7 +21,7 @@ $response = Invoke-RestMethod -Uri $APIDocURI -Method Get # @{n = 'PUT'; e = { (($_.value.psobject.Properties.Name) -contains 'PUT') } }, ` # @{n = 'PATCH'; e = { (($_.value.psobject.Properties.Name) -contains 'PATCH') } } | Format-Table -$path = '/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}' +$path = '/repos/{owner}/{repo}/vulnerability-alerts' $method = 'get' $response.paths.$path.$method $response.paths.$path.$method.tags | clip # -> Namespace/foldername