Loading templates/gitlab-ci-defectdojo.yml +1 −1 Original line number Diff line number Diff line Loading @@ -481,7 +481,7 @@ variables: # post request to import scan log_info "try to import scan ${_file} ${_scan_date} ${_type}" curl -LX POST "${DEFECTDOJO_SERVER_URL}/api/v2/import-scan/" -H "Content-Type: multipart/form-data" -H "Authorization: Token $DEFECTDOJO_API_KEY" -F file=@"${_file}" -F scan_date="${_scan_date}" -F scan_type="${_type}" -F engagement="${_engagement_id}" -F close_old_findings="true" -F service="${_service}" --verbose 1> test.txt curl -LX POST "${DEFECTDOJO_SERVER_URL}/api/v2/import-scan/" -H "Content-Type: multipart/form-data" -H "Authorization: Token $DEFECTDOJO_API_KEY" -F file=@"${_file}" -F scan_date="${_scan_date}" -F scan_type="${_type}" -F engagement="${_engagement_id}" -F close_old_findings="true" -F close_old_findings_product_scope="true" -F service="${_service}" --verbose 1> test.txt test_pk=$(jq ".test" test.txt) log_info "test_pk: ${test_pk}" if [[ -z "${test_pk}" ]]; then Loading Loading
templates/gitlab-ci-defectdojo.yml +1 −1 Original line number Diff line number Diff line Loading @@ -481,7 +481,7 @@ variables: # post request to import scan log_info "try to import scan ${_file} ${_scan_date} ${_type}" curl -LX POST "${DEFECTDOJO_SERVER_URL}/api/v2/import-scan/" -H "Content-Type: multipart/form-data" -H "Authorization: Token $DEFECTDOJO_API_KEY" -F file=@"${_file}" -F scan_date="${_scan_date}" -F scan_type="${_type}" -F engagement="${_engagement_id}" -F close_old_findings="true" -F service="${_service}" --verbose 1> test.txt curl -LX POST "${DEFECTDOJO_SERVER_URL}/api/v2/import-scan/" -H "Content-Type: multipart/form-data" -H "Authorization: Token $DEFECTDOJO_API_KEY" -F file=@"${_file}" -F scan_date="${_scan_date}" -F scan_type="${_type}" -F engagement="${_engagement_id}" -F close_old_findings="true" -F close_old_findings_product_scope="true" -F service="${_service}" --verbose 1> test.txt test_pk=$(jq ".test" test.txt) log_info "test_pk: ${test_pk}" if [[ -z "${test_pk}" ]]; then Loading