AReemal315338 (Community Member) asked a question.

A pipeline scan for a Java project that outputs a jar file doesn't show any vulnerabilities in the output whereas the same jar file shows multiple vulnerabilities when scanned with upload and scan

I have a Java application configured for both Upload and Scan and Pipeline scan, done through GitHub workflows. The pipeline scan is done through Veracode's GitHub action and the Upload and Scan is done through a script that uses the wrapper API.

 

upload and scan command is as follows

sh veracode-upload-scan.sh BTS_SFP false <jar file name> <version> "${{secrets.VID}}" "${{secrets.VKEY}}" false

 

Pipeline scan command is as follows

Screenshot 2023-10-12 at 18.21.31What could be the reason for this inconsistency in the reported results when using these 2 methods.


lucas.ferreira likes this.
  • hello @AReemal315338 (Community Member)​ 

     

    What is the output from pipeline scan action? Is something like "No issues found" ?

     

    You can test using CLI wrapper of Pipeline scan instead of Action to see if the same problem occur.

     

    Basically, you can download, unzip and scan, or use the Pipeline Scan docker image. Bellow there are some examples to use

     

    1. pipeline scan container 1
    2. pipeline scan container

    Let me see if the tests worked

    Expand Post
    • AReemal315338 (Community Member)

      Here's the output when using the GitHub action

      veracode-pipeline-outputAfter switching to the wrapper, I got the desired outcome. However, another reason to use the GitHub action-based pipeline scan was to utilize the PR decoration function that comes with it.

      Expand Post

Topics (5)

No articles found
Loading

Ask the Community

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