
AKulkarni119679 (Community Member) asked a question.

AKulkarni119679 (Community Member) asked a question.
Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the community.
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
.png)
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Hi @AKulkarni119679 (Community Member) - You're always welcome to reach out by creating a Case and our team can assist you there: https://community.veracode.com/s/contact-support
In the meantime, here are a few things worth checking — one of them solves this most of the time.
First, the big one: "veracode static scan" runs a Pipeline Scan, not Upload and Scan.
Those are two different scan types with different results, and Pipeline Scan is not connected to the Veracode Platform. It will not show up in your application profile, it will not evaluate against your policy, and it does not do flaw matching or respect mitigations you have already approved. So if you are comparing CLI output against a policy scan in the Platform and the numbers do not line up, that is expected behavior rather than a bug.
If you want the scan that appears in your application profile and counts for policy, that is Upload and Scan, which you run from the command line with the Java API Wrapper: https://docs.veracode.com/r/c_about_wrappers
If Pipeline Scan is what you want, here is the flow worth sanity-checking:
1. Credentials. Run "veracode configure", or set VERACODE_API_KEY_ID and VERACODE_API_KEY_SECRET if you are in CI.
2. Package first, scan second. The scan command takes a packaged artifact, not a source directory:
veracode package --source ./my-app --output ./verascan --trust
veracode static scan ./verascan/my-app.zip
The --trust flag is required the first time. Add --verbose to the package step and actually read what it produced — if the packager quietly skipped a module, your scan is covering less than you think.
3. Confirm you are giving it something scannable. Veracode SAST analyzes compiled artifacts, not raw source. For C/C++ and Apple platforms, debug symbols (or PDBs on Windows) are required if you want accurate file and line numbers. Missing debug symbols is a very common reason results look wrong — the flaws are real, the locations just are not mapped.
4. Check your own flags. --include limits which top-level modules get scanned, --baseline-file suppresses anything already in the baseline, and --fail-on-severity / --fail-on-cwe filter what gets reported. Any of those will make a scan look thinner than it is.
Docs worth bookmarking:
veracode package: https://docs.veracode.com/r/veracode_package
veracode static scan: https://docs.veracode.com/r/veracode_static_scan
Packaging requirements: https://docs.veracode.com/r/compilation_packaging
Pipeline Scan: https://docs.veracode.com/r/Pipeline_Scan