From ecd4d576081b90696db3cb57267dfd6e8f30a329 Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Sun, 12 Nov 2023 16:16:24 +0000 Subject: [PATCH] Fix path to trivy-results.sarif file to process Fix the path to the trivy-results.sarif as it seems to be in the root, where trivy is run, rather than in the working directory that is scanned. --- .github/workflows/terraform-checks.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/terraform-checks.yaml b/.github/workflows/terraform-checks.yaml index 770424d..8ead095 100644 --- a/.github/workflows/terraform-checks.yaml +++ b/.github/workflows/terraform-checks.yaml @@ -40,8 +40,6 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - name: Checkout the workflows-reusable-terraform repository uses: actions/checkout@v4 @@ -201,5 +199,5 @@ jobs: - name: Upload the trivy SARIF file for the ${{ inputs.type }} uses: github/codeql-action/upload-sarif@v2 with: - sarif_file: ${{ inputs.working-directory }}/trivy-results.sarif + sarif_file: trivy-results.sarif category: trivy-${{ inputs.type }}