> Step-by-step guide to generating your first SBOM using sbomify-action, open-source tools, and CI/CD integration.

- **Updated:** 2026-10-21

**TL;DR:** The easiest way is with sbomify-action, which generates, enriches, and uploads SBOMs from your lockfiles or Docker images in CI/CD. Run its interactive setup wizard (sbomify-action wizard) to get a working pipeline in minutes. You can also use standalone tools like Syft or cdxgen.

## Fastest path: the setup wizard

If you are starting from scratch, run the interactive [setup wizard](https://sbomify.com/faq/how-do-i-use-the-sbomify-setup-wizard/) from the root of your repository. The Docker image bundles everything it needs:

```bash
docker run --rm -it \
  -v "$(pwd):/github/workspace" \
  -w /github/workspace \
  ghcr.io/sbomify/sbomify-action \
  sbomify-action wizard
```

The wizard scans your repo for lockfiles, signs you in to sbomify, creates your product and components, registers [OIDC trusted publishing](https://sbomify.com/faq/how-do-i-set-up-oidc-trusted-publishing/), and writes a ready-to-commit `.github/workflows/sboms.yml`. Commit the file and your next push generates and uploads an SBOM.

## Recommended: sbomify-action

The [sbomify Action](https://sbomify.com/sbomify-action/) is a CI/CD tool that generates, augments, enriches, and uploads SBOMs from your lockfiles or Docker images. It works as a GitHub Action, Docker image, or pip package, and includes SBOM generators (Syft, cdxgen, and native ecosystem tools) pre-installed.

```yaml
- uses: sbomify/sbomify-action@master
  env:
    LOCK_FILE: requirements.txt
    OUTPUT_FILE: sbom.cdx.json
    ENRICH: true
```

sbomify-action supports 18 ecosystems (Python, JavaScript, Java, Go, Rust, Ruby, PHP, .NET, Swift, Dart, Elixir, Scala, C++, Terraform, Haskell, Erlang, Clojure, and PlatformIO), plus Docker images, directory scans and Yocto/OpenEmbedded builds. It outputs both CycloneDX and SPDX formats.

Beyond basic generation, sbomify-action can:

- **Enrich** SBOMs with metadata from package registries (PyPI, npm, crates.io, etc.)
- **Augment** with business metadata (supplier, authors, licenses, lifecycle phase)
- **Inject** additional packages not in lockfiles (vendored code, system libraries)
- **Upload** to sbomify for collaboration and vulnerability management
- **Attest** with GitHub's build provenance

It also works with [GitLab CI and Bitbucket Pipelines](https://github.com/sbomify/sbomify-action#other-cicd-platforms). See our [CI/CD integration guide](https://sbomify.com/guides/ci-cd/) for details.

### Using Docker directly

The sbomify-action Docker image can be used standalone, without any CI platform:

```bash
docker run --rm \
  -v $(pwd):/github/workspace \
  -w /github/workspace \
  -e LOCK_FILE=/github/workspace/requirements.txt \
  -e OUTPUT_FILE=/github/workspace/sbom.cdx.json \
  -e UPLOAD=false \
  -e ENRICH=true \
  ghcr.io/sbomify/sbomify-action
```

This is useful for local development, scripted workflows, or CI systems that don't have a native sbomify-action integration.

## Standalone tools

If you prefer standalone tools outside of CI/CD, **Syft** is a popular option:

```bash
# Using Syft
syft . -o cyclonedx-json > sbom.cdx.json
```

Note: We [no longer consider Trivy safe](https://sbomify.com/2026/03/26/trivy-compromise-hardening-sbomify-action/) following two successful supply chain attacks in March 2026 and have removed it from sbomify-action.

For language-specific generators, see our [language guides](https://sbomify.com/guides/) covering Python, JavaScript, Java, Go, Rust, Docker, and more.

## See it in action

Watch our FOSDEM 2026 talk for a real-world walkthrough of CRA-ready SBOM generation using sbomify-action:

Video: [CRA-Ready SBOMs: A Practical Blueprint for High-Quality Generation](https://video.fosdem.org/2026/ud2208/UYTGWA-sbom-generation.av1.webm). A four-phase SBOM generation model addressing the EU's Cyber Resilience Act requirements, covering authoring, augmenting, enriching, and signing SBOMs to exceed minimal compliance standards.

## Next steps

Once you have your SBOM, [upload it to sbomify](https://app.sbomify.com) to monitor for vulnerabilities, track compliance, and share it with customers through your [Trust Center](https://trust.sbomify.com/).

---

From sbomify: https://sbomify.com/faq/how-do-i-generate-an-sbom/
