Skip to content

Commit

Permalink
Scan src code directory
Browse files Browse the repository at this point in the history
  • Loading branch information
scott45 authored Jun 27, 2024
1 parent 288d0ab commit bb22749
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/anchore-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- name: Scan the image and upload dependency results
uses: anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a
- name: Scan the src directory and upload dependency results
uses: anchore/sbom-action@v0
with:
image: "localbuild/testimage:latest"
artifact-name: image.spdx.json
path: ./src/
artifact-name: src.spdx.json
dependency-snapshot: true
# - name: Build the Docker image
# run: docker build . --file Dockerfile --tag localbuild/testimage:latest
# - name: Scan the image and upload dependency results
# uses: anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a
# with:
# image: "localbuild/testimage:latest"
# artifact-name: image.spdx.json
# dependency-snapshot: true

0 comments on commit bb22749

Please sign in to comment.