Skip to content

Commit

Permalink
Update action.yml (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
senanjude0 authored Jan 22, 2024
1 parent 943f081 commit 425460c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trivy-image-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
elif [ "${{ inputs.output-mode }}" = "log" ]; then
TRIVY_FORMAT="table"
fi
if [ "${{ github.event_name }}" = "pull_request" -a "${{ github.event.pull_request.head.repo.fork }}" ]; then
if [ "${{ github.event_name }}" = "pull_request" -a "${{ github.event.pull_request.head.repo.fork }}" = "true" ]; then
TRIVY_FORMAT="table"
TRIVY_OUTPUT=""
fi
Expand Down Expand Up @@ -117,4 +117,4 @@ runs:
if: (success() || failure()) && inputs.output-mode == 'github' && steps.output.outputs.TRIVY_OUTPUT != '' && inputs.category != ''
with:
sarif_file: ${{ steps.output.outputs.TRIVY_OUTPUT }}
category: ${{ inputs.category }}
category: ${{ inputs.category }}

0 comments on commit 425460c

Please sign in to comment.