Skip to content

Commit

Permalink
Fix /trivy action running against target branch instead of PR branch
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Sep 4, 2024
1 parent de4bb2e commit 3d6e4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Checkout PR code
uses: actions/checkout@v4
with:
ref: ${{ github.event.issue.pull_request.head.ref }}
ref: refs/pull/${{ github.event.issue.number }}/head

- name: Comment Status on PR
run: |
Expand Down Expand Up @@ -45,4 +45,4 @@ jobs:
- name: Report Failure
if: ${{ failure() }}
run: |
gh issue comment ${{ github.event.issue.number }} --edit-last -b ":x: Trivy scan action failed, check logs :x:"
gh issue comment ${{ github.event.issue.number }} --edit-last -b ":x: Trivy scan action failed, check logs :x:"

0 comments on commit 3d6e4a7

Please sign in to comment.