Skip to content

Commit

Permalink
Add syft for SBOM
Browse files Browse the repository at this point in the history
  • Loading branch information
samayer12 committed Oct 9, 2024
1 parent c468bda commit b4c2604
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- main

jobs:
grype-scan:
container-scans:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
Expand All @@ -23,11 +23,15 @@ jobs:
cache: "npm"
- name: Install Pepr Dependencies
run: npm ci
- name: Build Pepr Dev Image
- name: Build Pepr Controller Image
run: npm run build:image
- name: Scan image
- name: Vulnerability Scan
uses: anchore/scan-action@64a33b277ea7a1215a3c142735a1091341939ff5 # v4.1.2
with:
image: "pepr:dev"
fail-build: true
severity-cutoff: high
- name: Generate SBOM
uses: anchore/sbom-action@v0
with:
image: ghcr.io/example/image_name:tag
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
name: semgrep/ci
# If you are self-hosting, change the following `runs-on` value:
runs-on: ubuntu-latest
continue-on-error: true

container:
# A Docker image with Semgrep installed. Do not change this.
Expand All @@ -36,7 +37,6 @@ jobs:
- uses: actions/checkout@v4

- run: semgrep scan --error --quiet
continue-on-error: true


- run: semgrep ci
Expand Down

0 comments on commit b4c2604

Please sign in to comment.