SDA-SE / defectdojo-client

Uploads reports to OWASP DefectDojo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This projects contains the DefectDojo upload client and statistics client. It is for example used within the ClusterImageScanner.

Entrypoints

The default entrypoint for the upload-client image is

"java", "-cp", "@/app/jib-classpath-file", "org.sdase.Main".

To use the upload validation, use

"java", "-cp", "@/app/jib-classpath-file", "org.sdase.uploadValidation.MainValidation".

To delete test products, use

"java", "-cp", "@/app/jib-classpath-file", "org.sdase.deleteTestProduct.MainDeleteProduct".

Run as image

export PRODUCT_NAME_TO_DELETE=String_In_Product_Name
export DEFECTDOJO_URL=xx
export DEFECTDOJO_APIKEY=xx
export DEFECTDOJO_USERNAME=xx

docker run -ti \
  -e "PRODUCT_NAME_TO_DELETE=${PRODUCT_NAME_TO_DELETE}" \
  -e "DEFECTDOJO_URL=${DEFECTDOJO_URL}" \
  -e "DEFECTDOJO_API_KEY=${DEFECTDOJO_APIKEY}" \
  -e "DEFECTDOJO_USERNAME=${DEFECTDOJO_USERNAME}" \
 --entrypoint="java" quay.io/sdase/defectdojo-client:4 -cp @/app/jib-classpath-file org.sdase.deleteProduct.DeleteProduct

About

Uploads reports to OWASP DefectDojo

License:MIT License


Languages

Language:Groovy 93.1%Language:Shell 6.9%