Skip to content

Commit

Permalink
Add vulnerability scan from sbom
Browse files Browse the repository at this point in the history
  • Loading branch information
lambchop4prez committed Sep 14, 2023
1 parent 933c205 commit 71886f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
uses: anchore/sbom-action@v0.14.3
with:
path: ./
format: spdx-json
output-file: "${{ github.event.repository.name }}-sbom.spdx.json"

- name: Archive nuget package artifacts
uses: actions/upload-artifact@v3.1.3
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ jobs:
with:
version: ${{ needs.build.outputs.version }}

vulnerability-scan:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/download-artifact@v3.0.2
with:
name: "${{ github.event.repository.name }}-sbom.spdx.json"
- uses: anchore/scan-action@v3
with:
sbom: "${{ github.event.repository.name }}-sbom.spdx.json"
###
# Publish nuget packages.
# Only runs on main, or when `+push` is included in a commit message.
Expand Down

0 comments on commit 71886f4

Please sign in to comment.