Commit c58aed56 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch '28-finding-auto-close-stopped-working' into 'main'

Resolve "Finding auto close stopped working"

Closes #28

See merge request to-be-continuous/defectdojo!43
parents 0f2838a4 0441cec2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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