Commit 88d5576b authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

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

Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit 3d6e4a79) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 9c537cb7
......@@ -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: |
......@@ -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:"
\ No newline at end of file
gh issue comment ${{ github.event.issue.number }} --edit-last -b ":x: Trivy scan action failed, check logs :x:"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment