This action take the Veracode pipeline scan json result file as an input and transform it to a SARIF format.
Add the -jo true
to your Pipeline Scan command to generate the JSON result file. See, details for the other pipeline scan attributes
If your github account allows code scanning, you can then upload the sarif
file to show the scan findings
See - Veracode pipeline scan example in github action
Required The path to the pipeline json result file. Default "results.json"
.
Optional The path to the SARIF format result file. Default "veracode-results.sarif"
.
- name: Convert pipeline scan output to SARIF format
id: convert
uses: Veracode/[email protected]
with:
pipeline-results-json: results.json
output-results-sarif: veracode-results.sarif
- name: upload sarif file to repository
uses: github/codeql-action/upload-sarif@v1
with: # Path to SARIF file relative to the root of the repository
sarif_file: veracode-results.sarif