Skip to content

Commit

Permalink
included upload sarif into a single action
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Apr 1, 2024
1 parent 7f0f5a3 commit fa8f1dd
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@ jobs:
uds run grype:install
uds run scan:vulns
upload-sarif:
needs: scan
runs-on: ubuntu-latest
strategy:
matrix:
repo: ['upstream', 'repo1']
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# Hard coded steps to upload SARIF files for specific repositories
- name: Upload SARIF files for upstream
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2
with:
sarif_file: sarif/upstream/*.sarif

- name: Upload SARIF files
- name: Upload SARIF files for repo1
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2
with:
sarif_file: sarif/${{ matrix.repo }}/*.sarif
sarif_file: sarif/repo1/*.sarif

0 comments on commit fa8f1dd

Please sign in to comment.