Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Бондаренко Марина Витальевна
SDL
Commits
27b79caf
Commit
27b79caf
authored
10 months ago
by
bonmari
Browse files
Options
Download
Patches
Plain Diff
fix
parent
1eaaf40a
main
ci-cd
fix-ci
master
1 merge request
!1
Ci cd
Pipeline
#153456
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-1
.gitlab-ci.yml
with
10 additions
and
1 deletion
+10
-1
.gitlab-ci.yml
+
10
−
1
View file @
27b79caf
...
...
@@ -43,9 +43,18 @@ 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") {
Write-Output "Scanning"
$scanStatus = (Invoke-RestMethod -Method GET -Uri "http://localhost:8080/JSON/ascan/view/status/?apikey=8tm221jcqtolmprhbt2dq2q8ev")
Write-Output $scanStatus
$scanStatus | ConvertTo-Json -Depth 10
Start-Sleep -Seconds 5
}
$results = Invoke-RestMethod -Method GET -Uri "http://localhost:8080/JSON/core/view/alerts/?baseurl=http://localhost:9005&apikey=8tm221jcqtolmprhbt2dq2q8ev"
$results | ConvertTo-Json -Depth 10
Write-Output "results"
Write-Output $results.Content
# - curl --header "url: 'http://localhost:9005'" --header "apikey: '8tm221jcqtolmprhbt2dq2q8ev'" http://localhost:8080/JSON/ascan/action/scan/
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets