Giter VIP home page Giter VIP logo

sbom.sh-container's Introduction

SBOM.sh Container Image

This repository contains the Dockerfile and scripts to build a container image that facilitates generating and uploading Software Bill of Materials (SBOM) to SBOM.sh utilizing various open-source SBOM tools such as Trivy, Grype, and Syft.

Container Image Location

You can pull the ready-made container image from Docker Hub:

docker pull codenotary/sbom.sh

Features

  • Generate SBOM for filesystems, container images, and local SBOM files.
  • Upload SBOM to SBOM.sh and obtain a shareable URL.
  • Optionally, trigger vulnerability scan and SBOM score calculation at SBOM.sh.

Usage

Building the Container Image yourself

git clone https://github.com/your-username/sbom-sh-container.git
cd sbom-sh-container
docker build -t sbom.sh:latest .

Running the Container

Scanning Filesystems

docker run -v $(pwd):/app -it sbom.sh:latest trivyfs

Scanning Container Images

docker run -it sbom.sh:latest trivyimage [vulnscan] image-name

Sending Local SBOM file

docker run -v $(pwd):/app -it sbom.sh:latest sendsbom sbom-file-name # SBOM file in the mapped app folder
  • Make sure to map your local directory to /app in the container using the -v flag.
  • The vulnscan flag is optional and is used to trigger a vulnerability scan and SBOM score calculation at SBOM.sh.

Commands Supported

  • trivyfs: Scan the filesystem mapped to /app in the container using Trivy.
  • trivyimage: Scan a specified container image using Trivy.
  • grypefs: Scan the filesystem mapped to /app in the container using Grype.
  • grypeimage: Scan a specified container image using Grype.
  • syftfs: Scan the filesystem mapped to /app in the container using Syft.
  • syftimage: Scan a specified container image using Syft.
  • sendsbom: Send a local SBOM file to sbom.sh.

For each command, a URL to the generated SBOM on SBOM.sh is outputted to the terminal. If the vulnscan flag is specified (where applicable), additional vulnerability scanning and SBOM score calculation are triggered at sbom.sh.

Dependencies

Contributing

Feel free to open issues or PRs if you have suggestions for improvements or additions to this container image.

License

Apache License 2.0

sbom.sh-container's People

Contributors

vchaindz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.