Fix /trivy action running against target branch instead of PR branch

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 3d6e4a793a)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/10873/head
Brad Davidson 2024-09-04 22:46:43 +00:00 committed by Brad Davidson
parent bf1d3aa6ef
commit ebc4e505ea
1 changed files with 2 additions and 2 deletions

View File

@ -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: |