Commit 47dd8bfe authored by bonmari's avatar bonmari
Browse files

grte

1 merge request!1Ci cd
Pipeline #153429 passed with stage
in 4 seconds
Showing with 1 addition and 6 deletions
+1 -6
......@@ -43,12 +43,7 @@ test-zap:
- Invoke-RestMethod -Method GET -Uri "http://localhost:8080/JSON/ascan/action/scan/?url=http://localhost:9005&apikey=8tm221jcqtolmprhbt2dq2q8ev"
- |
$scanStatus = ""
while ($scanStatus -ne "100") {
$scanStatus = (Invoke-RestMethod -Method GET -Uri "http://localhost:8080/JSON/ascan/view/status/?apikey=$env:API_KEY").Content
Write-Output "Сканирование на $scanStatus% завершено..."
Start-Sleep -Seconds 5
}
$results = Invoke-RestMethod -Method GET -Uri "http://localhost:8080/JSON/core/view/alerts/?baseurl=http://localhost:9005&apikey=8tm221jcqtolmprhbt2dq2q8ev"
Write-Output $results.Content
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment