Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/sbom-syft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SBOM workflow for Syft
#
# Triggers when syft version or config is updated.
# Downloads SBOM from GitHub releases (per-architecture).
#
# https://github.com/anchore/syft

name: "SBOM: syft"

on:
push:
branches:
- master
paths:
- 'apps/syft/config.yaml'
- '.github/workflows/sbom-syft.yml'

workflow_dispatch:
inputs:
dry_run:
description: 'Run in dry-run mode (no upload)'
required: false
type: boolean
default: false

jobs:
build:
uses: ./.github/workflows/sbom-builder.yml
with:
app: syft
dry_run: ${{ github.event.inputs.dry_run == 'true' }}
secrets: inherit
permissions:
id-token: write
contents: read
attestations: write

37 changes: 37 additions & 0 deletions .github/workflows/sbom-trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SBOM workflow for Trivy
#
# Triggers when trivy version or config is updated.
# Downloads SBOM from GitHub releases.
#
# https://github.com/aquasecurity/trivy

name: "SBOM: trivy"

on:
push:
branches:
- master
paths:
- 'apps/trivy/config.yaml'
- '.github/workflows/sbom-trivy.yml'

workflow_dispatch:
inputs:
dry_run:
description: 'Run in dry-run mode (no upload)'
required: false
type: boolean
default: false

jobs:
build:
uses: ./.github/workflows/sbom-builder.yml
with:
app: trivy
dry_run: ${{ github.event.inputs.dry_run == 'true' }}
secrets: inherit
permissions:
id-token: write
contents: read
attestations: write

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Each app has its own folder with version tracking. When you bump the `version` i
| [Keycloak](https://github.com/keycloak/keycloak) | Backend | Lockfile (pom.xml) | [![SBOM](https://github.com/sbomify/library/actions/workflows/sbom-keycloak.yml/badge.svg)](https://github.com/sbomify/library/actions/workflows/sbom-keycloak.yml) | [![sbomify](https://sbomify.com/assets/images/logo/badge.svg)](https://library.sbomify.com/product/keycloak/) |
| [Keycloak](https://github.com/keycloak/keycloak) | JS | Lockfile (pnpm) | [![SBOM](https://github.com/sbomify/library/actions/workflows/sbom-keycloak-js.yml/badge.svg)](https://github.com/sbomify/library/actions/workflows/sbom-keycloak-js.yml) | [![sbomify](https://sbomify.com/assets/images/logo/badge.svg)](https://library.sbomify.com/product/keycloak/) |
| [OSV Scanner](https://github.com/google/osv-scanner) | OSV Scanner | Lockfile | [![SBOM](https://github.com/sbomify/library/actions/workflows/sbom-osv-scanner.yml/badge.svg)](https://github.com/sbomify/library/actions/workflows/sbom-osv-scanner.yml) | [![sbomify](https://sbomify.com/assets/images/logo/badge.svg)](https://library.sbomify.com/product/osv-scanner/) |
| [Syft](https://github.com/anchore/syft) | Syft | Lockfile | [![SBOM](https://github.com/sbomify/library/actions/workflows/sbom-syft.yml/badge.svg)](https://github.com/sbomify/library/actions/workflows/sbom-syft.yml) | [![sbomify](https://sbomify.com/assets/images/logo/badge.svg)](https://library.sbomify.com/product/syft/) |
| [Trivy](https://github.com/aquasecurity/trivy) | Trivy | GitHub Release | [![SBOM](https://github.com/sbomify/library/actions/workflows/sbom-trivy.yml/badge.svg)](https://github.com/sbomify/library/actions/workflows/sbom-trivy.yml) | [![sbomify](https://sbomify.com/assets/images/logo/badge.svg)](https://library.sbomify.com/product/trivy/) |

## Directory Structure

Expand Down
25 changes: 25 additions & 0 deletions apps/syft/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Syft SBOM Configuration
#
# Syft is a CLI tool and library for generating a Software Bill of Materials
# from container images and filesystems.
#
# SBOM source: Lockfile (go.mod from GitHub release)
# https://github.com/anchore/syft

name: syft
version: "1.39.0"

# cdxgen generates CycloneDX SBOMs from the Go lockfile
format: cyclonedx

source:
type: lockfile
repo: "anchore/syft"
lockfile: "go.mod"
tag_prefix: "v"

sbomify:
component_id: "AGWWwQ5T2dP1"
component_name: "Syft"
product_id: "JaBHDMM1gmuZ"

24 changes: 24 additions & 0 deletions apps/trivy/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Trivy SBOM Configuration
#
# Trivy is a comprehensive security scanner that finds vulnerabilities,
# misconfigurations, secrets, and SBOMs.
#
# SBOM source: GitHub releases
# https://github.com/aquasecurity/trivy

name: trivy
version: "0.68.2"

format: cyclonedx

source:
type: github_release
repo: "aquasecurity/trivy"
asset: "bom.json"
tag_prefix: "v"

sbomify:
component_id: "D1h5y3TC4GqX"
component_name: "Trivy"
product_id: "X7qe2Jyf9r29"