mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-02 00:19:55 +00:00
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>
This commit is contained in:
committed by
Brad Davidson
parent
bf1d3aa6ef
commit
ebc4e505ea
4
.github/workflows/trivy.yaml
vendored
4
.github/workflows/trivy.yaml
vendored
@@ -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:"
|
||||
gh issue comment ${{ github.event.issue.number }} --edit-last -b ":x: Trivy scan action failed, check logs :x:"
|
||||
|
||||
Reference in New Issue
Block a user