Skip to content

Commit

Permalink
[291] Added checkout to reference sha and commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen committed Sep 10, 2024
1 parent 360edae commit 4233f7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
steps:
- name: checkout
id: checkout
uses: actions/checkout@main
with:
ref: ${{ github.event.inputs.tag }}
- name: Scan for vulnerabilities
id: scan
uses: crazy-max/ghaction-container-scan@v3
Expand All @@ -52,4 +57,5 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
ref: ${{ github.event.inputs.tag }}
ref: ${{ steps.checkout.outputs.ref }}
sha: ${{ steps.checkout.outputs.commit }}

0 comments on commit 4233f7f

Please sign in to comment.