Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.31 KB

File metadata and controls

37 lines (24 loc) · 1.31 KB

Veracode Pipeline scan results to SARIF - Github Action

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


Inputs

pipeline-results-json

Required The path to the pipeline json result file. Default "results.json".

output-results-sarif

Optional The path to the SARIF format result file. Default "veracode-results.sarif".

Example usage

- 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