{"id":18436082,"url":"https://github.com/codenotary/sbom.sh-container","last_synced_at":"2025-04-14T10:57:51.915Z","repository":{"id":197546626,"uuid":"698863494","full_name":"codenotary/sbom.sh-container","owner":"codenotary","description":"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.","archived":false,"fork":false,"pushed_at":"2023-10-10T21:09:14.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T10:57:32.872Z","etag":null,"topics":["sbom","sbom-distribution","sbom-generator"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codenotary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-01T07:49:44.000Z","updated_at":"2025-03-14T00:15:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"61aaeb31-06cd-4651-bdeb-feacfb9c6ae3","html_url":"https://github.com/codenotary/sbom.sh-container","commit_stats":null,"previous_names":["codenotary/sbom.sh-container"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fsbom.sh-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fsbom.sh-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fsbom.sh-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenotary%2Fsbom.sh-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenotary","download_url":"https://codeload.github.com/codenotary/sbom.sh-container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868806,"owners_count":21174757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sbom","sbom-distribution","sbom-generator"],"created_at":"2024-11-06T06:10:14.748Z","updated_at":"2025-04-14T10:57:51.889Z","avatar_url":"https://github.com/codenotary.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SBOM.sh Container Image\n\nThis repository contains the Dockerfile and scripts to build a container image that facilitates generating and uploading Software Bill of Materials (SBOM) to [SBOM.sh](https://sbom.sh) utilizing various open-source SBOM tools such as Trivy, Grype, and Syft.\n\n## Container Image Location\n\nYou can pull the ready-made container image from Docker Hub:\n\n```bash\ndocker pull codenotary/sbom.sh\n```\n\n## Features\n\n- Generate SBOM for filesystems, container images, and local SBOM files.\n- Upload SBOM to SBOM.sh and obtain a shareable URL.\n- Optionally, trigger vulnerability scan and SBOM score calculation at SBOM.sh.\n\n## Usage\n\n### Building the Container Image yourself\n\n```bash\ngit clone https://github.com/your-username/sbom-sh-container.git\ncd sbom-sh-container\ndocker build -t sbom.sh:latest .\n```\n\n### Running the Container\n\n#### Scanning Filesystems\n\n```bash\ndocker run -v $(pwd):/app -it sbom.sh:latest trivyfs\n```\n\n#### Scanning Container Images\n\n```bash\ndocker run -it sbom.sh:latest trivyimage [vulnscan] image-name\n```\n\n#### Sending Local SBOM file\n\n```bash\ndocker run -v $(pwd):/app -it sbom.sh:latest sendsbom sbom-file-name # SBOM file in the mapped app folder\n```\n\n- Make sure to map your local directory to `/app` in the container using the `-v` flag.\n- The `vulnscan` flag is optional and is used to trigger a vulnerability scan and SBOM score calculation at SBOM.sh.\n\n## Commands Supported\n\n- `trivyfs`: Scan the filesystem mapped to `/app` in the container using Trivy.\n- `trivyimage`: Scan a specified container image using Trivy.\n- `grypefs`: Scan the filesystem mapped to `/app` in the container using Grype.\n- `grypeimage`: Scan a specified container image using Grype.\n- `syftfs`: Scan the filesystem mapped to `/app` in the container using Syft.\n- `syftimage`: Scan a specified container image using Syft.\n- `sendsbom`: Send a local SBOM file to sbom.sh.\n\nFor 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.\n\n## Dependencies\n\n- [Trivy](https://github.com/aquasecurity/trivy)\n- [Grype](https://github.com/anchore/grype)\n- [Syft](https://github.com/anchore/syft)\n\n## Contributing\n\nFeel free to open issues or PRs if you have suggestions for improvements or additions to this container image.\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenotary%2Fsbom.sh-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenotary%2Fsbom.sh-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenotary%2Fsbom.sh-container/lists"}