We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 041f95b commit 73907dbCopy full SHA for 73907db
.github/actions/trivy-scan/action.yml
@@ -117,7 +117,10 @@ runs:
117
INPUTS_IMAGE_TAG: ${{ inputs.image-tag }}
118
119
- name: Comment scan results on PR
120
- if: inputs.create-pr-comment == 'true' && github.event_name == 'pull_request'
+ if: >-
121
+ inputs.create-pr-comment == 'true'
122
+ && github.event_name == 'pull_request'
123
+ && github.event.pull_request.head.repo.full_name == github.repository
124
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
125
env:
126
IMAGE_NAME: ${{ inputs.image-name }}
0 commit comments