Skip to content

Commit

Permalink
Fix path to trivy-results.sarif file to process
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonathanio committed Nov 12, 2023
1 parent 7b54136 commit ecd4d57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/terraform-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit ecd4d57

Please sign in to comment.