Update main.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |