SSharma950107 (Community Member) asked a question.

How to run veracode scan process synchronously while using the Veracode Java Wrapper API from linux command line

Hi,

 

Use Case:

I want to run veracode scan progress from command using java wrapper api as long as scan is running at veracode side, if this is not possible let me know which action i can use to poll results and act accordingly.

 

I am using Veracode Java wrapper API to perform the veracode scan from command line, but it seems like after submitting the pre scan to veracode process exit, while scan is in prgress at veracode side.

 

Hence, i want to know if i can run veracode scan process in synchronous mode where java process will exit in case of any error/cancel, as i want run the process till scan is in progress, if this is not possible in current using java wrapper API - no such switch is available, then let me know which action i can use to poll the result and act accordingly on the basis of any event status.

 

Thanks


  • Matt Runkle (Veracode)

    Hello -

     

    Happy to see you are automating Veracode scans using the Java wrapper. Keep in mind, we have many plugins for build systems, so if you are using a build server, we may already have an easy way to set this up!

     

    You can run the Java wrapper synchronously by using the -scantimeout option, which is part of the composite uploadandscan action. Set the value to the maximum number of minutes the process should run; it will return sooner if the scan completes in less time, however.

     

    If you prefer not to use a composite action, simply poll the detailedreport action once the scan is running until it returns a "Results Ready" status. You can use the commands listed under "Upload Actions" to start the scan (either using an autoscan option on the beginprescan action or the beginscan action once prescan is complete): https://help.veracode.com/r/c_wrapper_simple_actions

    Expand Post

Topics (1)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.