Commit ed3a20cd authored by Бондаренко Марина Витальевна's avatar Бондаренко Марина Витальевна
Browse files

Update .gitlab-ci.yml file

1 merge request!1Ci cd
Pipeline #153427 passed with stage
Showing with 2 additions and 4 deletions
+2 -4
......@@ -43,7 +43,6 @@ 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
......@@ -51,9 +50,8 @@ test-zap:
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)"
$results = Invoke-RestMethod -Method GET -Uri "http://localhost:8080/JSON/core/view/alerts/?baseurl=http://localhost:9005&apikey=8tm221jcqtolmprhbt2dq2q8ev"
Write-Output $results.Content
# - curl --header "url: 'http://localhost:9005'" --header "apikey: '8tm221jcqtolmprhbt2dq2q8ev'" http://localhost:8080/JSON/ascan/action/scan/
......
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