anchore/Anchore SBOM Action

Creates an SBOM (Software Bill Of Materials) from your code and container images

View on GitHub

Trust Signals

Scorecard Score
Scorecard 6–8scored Jul 6, 2026
Maintenance Recency
Activelast commit Jul 10, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
pathA path to a directory on the filesystem to scanno.
fileA file on the filesystem to scanno
imageA container image to scanno
registry-usernameThe registry usernameno
registry-passwordThe registry passwordno
formatThe SBOM format to exportnospdx-json
github-tokenAuthorized secret GitHub Personal Access Token. Defaults to github.tokenno${{ github.token }}
artifact-nameThe name to use for the SBOM file generated by this actionno
output-fileA file location to output the SBOMno
syft-versionThe version of Syft to useno
dependency-snapshotUpload to GitHub dependency snapshot APInofalse
upload-artifactUpload artifact to workflownotrue
upload-artifact-retentionRetention policy for uploaded artifact to workflow. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. An input of 0 assumes default retention value. no0
upload-release-assetsUpload release assetsnotrue
configConfiguration file to useno

no outputs