Skip to content

Commit

Permalink
add category to trivy sarif upload
Browse files Browse the repository at this point in the history
Signed-off-by: anderssonw <wandersson.98@gmail.com>
  • Loading branch information
anderssonw committed Jun 6, 2023
1 parent 35a94d3 commit 862accc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: "A string which determines the highest level of severity the security scans can find while still succeeding workflows. Only `medium`, `high` and `critical` are allowed as input strings. Note that these values are case sensitive."
required: false
default: medium
trivy_category:
description: "A category for describing the Trivy action. Useful for differentiating between different runs of different images."
required: false
default: "Trivy"

runs:
using: "composite"
Expand Down Expand Up @@ -92,6 +96,7 @@ runs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: trivy-results.sarif
category: ${{ inputs.trivy_category }}

#
# Check results
Expand Down

0 comments on commit 862accc

Please sign in to comment.