CAST HIGHLIGHT - CLI - Not able to submit after using the skipSubmit option along with appendResult as the last result uploaded is not known

User was not able to submit after using the skipSubmit option along with appendResult as the last result uploaded is not known.

This happened because user do not know which app is the last one to be uploaded in automation (Some apps may not also have any result), so when to remove the skipupload option is not clear. 

 

Solution

User needs to know which is the last upload or determine it in the script or manually submit the entire result (all uploads) from the UI. Or consolidate all scan results locally before uploading the entire result CSV with a single CLI run.

 

A solution can also be used with public API 
After all CLI operation with skipSubmit  
 
Get the result Id using this API: 
GET /domains/{domainId}/applications/{applicationId}/results  returns result for application
    {
      "id": 1,  <= result ID
      "snapshotLabel": "labelxxx",
      "snapshotDate": 1736377200000,
      "status": "ongoing",
      "type": "Scan"
  }
 
Then submit can be done with
POST /domains/{domainId}/applications/{applicationId}/results/{resultId}/submit that will perform submit operation

 

 

NB  Below is an example scenario where --appendResult    and –skipSubmit are used together.                         

If there are 10 folders to scan, from the 1st to the 9th scan use appendResult as well as skipSubmit together (The --appendResult  option will add uploaded result CSVs to existing/previously uploaded CSV results. This option should be combined with --skipSubmit if you expect further CSV result uploads from other scans for the same application.)

For the final scan avoid using skipSubmit and just --appendResult option so the results will be uploaded.

--appendResult               Previously uploaded results for application/label/date will not be removed.

--skipSubmit                     Results will not be submitted after the upload process

Please refer Highlight Automated Code Scan (Command Line)

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

Ticket

50600

 

Have more questions? Submit a request

Comments

Powered by Zendesk