Skip to content

Commit

Permalink
[291] Fixed variable assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen committed Sep 10, 2024
1 parent 4233f7f commit 9c8e636
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,23 @@ jobs:
run: echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
vulnerability-scan:
set-sha-ref:
runs-on: ubuntu-latest
needs: setup-matrix
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
steps:
- name: checkout
id: checkout
uses: actions/checkout@main
with:
ref: ${{ github.event.inputs.tag }}
outputs:
ref: ${{ steps.checkout.outputs.ref }}
commit: ${{ steps.checkout.outputs.commit }}
vulnerability-scan:
runs-on: ubuntu-latest
needs: [setup-matrix, set-sha-ref]
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
steps:
- name: Scan for vulnerabilities
id: scan
uses: crazy-max/ghaction-container-scan@v3
Expand All @@ -57,5 +63,5 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
ref: ${{ steps.checkout.outputs.ref }}
sha: ${{ steps.checkout.outputs.commit }}
ref: ${{ needs.set-sha-ref.outputs.ref }}
sha: ${{ needs.set-sha-ref.outputs.commit }}

0 comments on commit 9c8e636

Please sign in to comment.