We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b095f7 commit 47857f1Copy full SHA for 47857f1
action.yml
@@ -41,10 +41,10 @@ runs:
41
} | ConvertTo-Json
42
43
# Retrieve all alerts and add them to an array
44
- $page = 1
45
- $get_uri = "https://api.github.com/repos/$env:OWNER/$env:PROJECT_NAME/code-scanning/alerts?state=open&page={0}&per_page=$env:ALERTS_PER_PAGE"
46
function Get-AllAlerts {
+ $page = 1
47
$array_of_all_alerts = @()
+ $get_uri = "https://api.github.com/repos/$env:OWNER/$env:PROJECT_NAME/code-scanning/alerts?state=open&page={0}&per_page=$env:ALERTS_PER_PAGE"
48
49
do {
50
$array_of_alerts_indexes = Invoke-RestMethod -Method GET -Header $headers -URI $($get_uri -f $page)
0 commit comments