Skip to content

Commit

Permalink
fix: comment only on non fork
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl authored Jul 10, 2024
1 parent 588a05e commit 028aedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/standard-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ jobs:
- name: Add trivy report PR comment
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
# when running from a fork, the CI token doesn't have enough permissions to create PR comments
if: ${{ github.event_name == 'pull_request' && inputs.enable-trivy-scan && github.event.pull_request.head.repo.fork }}
if: ${{ github.event_name == 'pull_request' && inputs.enable-trivy-scan && !github.event.pull_request.head.repo.fork }}
with:
recreate: true
header: "trivy-report-comment-${{ steps.slugify-image.outputs.slug }}"
Expand Down

0 comments on commit 028aedc

Please sign in to comment.