Submit container image dependencies to the GitHub Dependency Graph using Syft via the anchore/sbom-action.
Scans an existing container image and submits its dependencies to the GitHub Dependency Graph.
Usage:
- Go to Actions → Submit Container Dependencies
- Click Run workflow
- Enter the image to scan (default:
nginx:latest) - Click Run workflow
Builds a Docker image from this repository and submits its dependencies.
Usage:
- Go to Actions → Build and Submit Dependencies
- Click Run workflow
- Optionally customize Dockerfile path and image tag
- Click Run workflow
After a successful workflow run, view the dependencies at:
- Insights → Dependency graph → Dependencies
Or via the API:
gh api /repos/OWNER/REPO/dependency-graph/sbom- The workflow uses anchore/sbom-action which runs Syft
- Syft generates an SBOM (Software Bill of Materials) from the container image
- The action submits the SBOM to GitHub's Dependency Submission API
- Dependencies appear in the repository's Dependency Graph
- Repository must have Dependency Graph enabled (Settings → Code security and analysis)
- Workflows need
contents: writepermission to submit dependencies