
BValand958915 (Community Member) asked a question.
Hi,
I am newbie to veracode scanning so i would like to know what files we need to include for veracode static scan.
I have angular project which is written in typescript so should i compile my project via ng build and zip dist folder for scanning. Please advise?
I would prefer typescript code scanned so if there is any issue i can see which line of code and easy to fix.
Another concern is about node_modules the documentation says include it in the source files but the zip file will be around 150mb.
Do i need to include only the packages that are not listed in package.json or package-lock.json files?
The veracode documentation - https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/AM8PAkQKwsHbNYXy2VeX5Q
The document refers as below :-
When analyzing Node.JS applications, if you want to analyze components within the node_modules folder, include it in the uploaded source. Files within the node_modules folder appear as selectable modules only if they are not listed as part of the dependencies or devDependencies sections of either the package.json or package-lock.json files.
Note: Excluding the node_modules folder from an upload may affect your SCA Results.
.png)
Hi Anthony
Thanks for your reply.
I had a call with Veracode support and was advised that we are not required to include node_modules folder if package is specified in package.json or package.lock.json file as dependencies or devDependencies.
Thanks
Bhavesh