
RBogdanov278153 (Community Member) asked a question.
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
.png)
Forgot to mention I am using latest Docker container with pipeline-scan version: 22.11.0-0
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.
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"
```