This repository contains a reusable workflow to scan a container image and submit its dependencies to the GitHub Dependency Graph.
- 📦 Generates SBOM using
anchore/sbom-action(Syft) - 🚀 Submits to GitHub using
scalabrino/sbom-dependency-submission-action - 📊 Populates Dependency Graph in the "Insights" tab of your repository
jobs:
submit-deps:
uses: YOUR-ORG/container-dependency-submitter/.github/workflows/submit-dependencies.yml@main
with:
image: 'my-image:latest'The calling workflow must have contents: write permission to submit to the Dependency Graph.
permissions:
contents: write- Generate SBOM: The workflow uses Syft to generate an SBOM in SPDX JSON format from the specified container image.
- Submit: The SBOM is processed and submitted to the GitHub Dependency Submission API.
- View: Dependencies appear in the repository's "Insights" -> "Dependency graph" view.
| Input | Description | Required | Default |
|---|---|---|---|
image |
The container image to analyze | Yes | - |
token |
GitHub token | No | github.token |
MIT