RBogdanov278153 (Community Member) asked a question.

Using absolute paths for --json_output_file and --filtered_json_output_file gives PIPELINE-SCAN ERROR

Hello,

 

While using pipeline-scan, I am getting:

PIPELINE-SCAN ERROR: The filename for file '/source/reports/veracode.json' is invalid. Rename the file and try again.

PIPELINE-SCAN ERROR: The filename for file '/source/reports/veracode.filtered.json' is invalid. Rename the file and try again.

 

Does that mean the above flag options only accept the file name and it is not possible to point to a specific path where those files can be written to?

 

Thank

Rosen


  • RBogdanov278153 (Community Member)

    Forgot to mention I am using latest Docker container with pipeline-scan version: 22.11.0-0

    • neilbarnwell (Community Member)

      Did you find a solution for this? I find that when I use the docker image the ability to extract the results.json file is a problem.

  • neilbarnwell (Community Member)

    I worked this out today. You are correct that the argument is the file name only. The way to have it written to your volume so you can access it after the container has quit is to change the current working directory of the container using `--workdir` argument:

     

    ```

    docker run -it --rm --workdir "/SecurityScanOutput" -v "$($script:SecurityScanOutputDirectory):/SecurityScanOutput" veracode/pipeline-scan:cmd -vid "$script:SecurityScanApiId" -vkey "$script:SecurityScanApiSecret" --file "/SecurityScanOutput/$filename" --fail_on_severity "Very High, High"

    ```

    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.