When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
Hello @SO'Brien168874 (Community Member) ,
To answer your question, the vendor folder is needed for Static Analysis scans and not Software Composition Analysis scans. The SCA scans already look at go.sum file.
Jason
Veracode Support Engineer
Jason,
Thank you for the response. Is Software Composition Analysis run from the agent (srcclr scan)?
Thanks,
Shaun
Hi @SO'Brien168874 (Community Member) ,
In order to better answer your question, can you please let me know what you are trying to accomplish and expand upon more upon the previous question about SCA?
Jason
Veracode Support Engineer
Jason,
We recently moved to using Artifactory as our source of truth for GO dependencies, i.e. no longer have a vendor folder. However, our security team scanned the source code (with SourceClear SCA) locally to identify security vulnerabilities. Now I am trying to mitigate the issues but continuously keep getting the same vulnerabilities back. The only way I could find to mitigate was to use the replace directive in go.mod to override vulnerable versions. Is that something you typically see from your customers?
Our security team has been scanning like this:
srcclr scan --allow-dirty --no-upload --ws=A77HvKw --recursive
Should we be using the --quick option?
Thanks,
Shaun
Any updates?
Hello Shaun,
I am researching the information you provided above and hope to have a response for you soon.
Jason
Veracode Support Engineer
Thanks Jason. My questions have been related to running SourceClear locally, however what can be done to automate the SCA process? We use Artifactory.
Hi @SO'Brien168874 (Community Member) ,
To debug issues with upload and scan, you could try to run the agent in a manner that emulates the behavior of the upload and scan but please note that this emulation only mimics the behavior of upload and scan scanning, and the behavior may be different wrt. the archive files found within the binary. To accomplish this:
Also, it is possible to automate the SCA, and would read the Help Center article Veracode SCA Best Practices for Automated CI/CD for more information.
Jason
Veracode Support Engineer