Skip to content

Commit

Permalink
Install and use syft directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Sep 7, 2023
1 parent e0ecd87 commit 038f75b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@ jobs:
ghcr.io/gatewayd-io/gatewayd:latest
platforms: linux/amd64
- name: Scan Docker image with Syft and generate SBOM
uses: anchore/sbom-action@v0
with:
artifact-name: gatewayd-image-${{ github.ref_name }}.cyclonedx.json
format: cyclonedx-json
dependency-snapshot: true
image: gatewaydio/gatewayd:${{ github.ref_name }}
run: |
go install github.com/anchore/syft/cmd/syft@latest
syft packages docker:gatewaydio/gatewayd:${{ github.ref_name }} --file gatewayd-image-${{ github.ref_name }}.cyclonedx.json --output cyclonedx-json
- name: Scan source code and generate SBOM
run: |
go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest
Expand Down

0 comments on commit 038f75b

Please sign in to comment.