File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ pipeline {
44 environment {
55 NIGHTVISION_TOKEN = credentials(' nightvision-token' )
66 NIGHTVISION_TARGET = ' javaspringvulny-api'
7- NIGHTVISION_APP = ' javaspringvulny-api'
87 NIGHTVISION_AUTH = ' javaspringvulny-api'
98 }
109
@@ -30,7 +29,7 @@ pipeline {
3029 script {
3130 sh """
3231
33- ./nightvision swagger extract ./ -t "${ env.NIGHTVISION_TARGET} " --lang spring || true
32+ ./nightvision swagger extract . -t "${ env.NIGHTVISION_TARGET} " --lang spring || true
3433 if [ ! -e openapi-spec.yml ]; then
3534 cp backup-openapi-spec.yml openapi-spec.yml
3635 fi
@@ -54,7 +53,7 @@ pipeline {
5453 script {
5554 sh """
5655
57- ./nightvision scan "${ env.NIGHTVISION_TARGET} " -a " ${ env.NIGHTVISION_APP } " - -auth "${ env.NIGHTVISION_AUTH} " > scan-results.txt
56+ ./nightvision scan "${ env.NIGHTVISION_TARGET} " --auth "${ env.NIGHTVISION_AUTH} " > scan-results.txt
5857 ./nightvision export sarif -s \$ (head -n 1 scan-results.txt) --swagger-file openapi-spec.yml > results.sarif
5958 """
6059
You can’t perform that action at this time.
0 commit comments