Commit 42c2a7e7 authored by Christophe Mathias's avatar Christophe Mathias Committed by Pierre Smeyers
Browse files

fix(nodejsscan): use Node template version to be consistent with other tools' imports

parent 732470f1
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -349,11 +349,7 @@ variables:
        for file in ${DEFECTDOJO_NODEJSSCAN_REPORTS}
        do
          if [[ $(expr "$file" : '.*\*.*') == 0 ]] && [[ -f "$file" ]]; then
            driver_name=$(jq -r ".runs[0].tool.driver.name" "$file" 2>/dev/null)
            driver_version=$(jq -r ".runs[0].tool.driver.version" "$file" 2 >/dev/null)
            log_info "driver_name: ${driver_name}"
            log_info "driver_version: ${driver_version}"
            import_scan "$file" "SARIF" "$engagement_id" "${driver_name} ${driver_version}"
            import_scan "$file" "SARIF" "$engagement_id" "to-be-continuous/node ${node_tpl_version}"
          fi
        done
      fi