Skip to content

Update main.yml

Update main.yml #1

Workflow file for this run

name: Generate SBOM Report with Syft
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
generate-sbom:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- name: Generate SBOM
run: |
syft docker.io/kodekloud/webapp-color:latest -o spdx-json > spdx.json
- name: Upload SBOM Artifact
uses: actions/upload-artifact@v3
with:
name: sbom-report
path: spdx.json