diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index 7ce8d36aba92..f20f345282b9 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -13,14 +13,15 @@ jobs: env: GH_TOKEN: ${{ github.token }} steps: - - name: Comment Status on PR - run: | - gh repo set-default ${{ github.repository }} - gh pr comment ${{ github.event.issue.number }} -b ":construction: Running Trivy scan started on PR :construction: " - name: Checkout PR code uses: actions/checkout@v4 with: ref: ${{ github.event.issue.pull_request.head.ref }} + + - name: Comment Status on PR + run: | + gh repo set-default ${{ github.repository }} + gh pr comment ${{ github.event.issue.number }} -b ":construction: Running Trivy scan started on PR :construction: " - name: Build K3s Image run: |