Update anchore/sbom-action digest to df80a98 (#309) #291
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow checks out code, builds an image, performs a container image | |
# scan with Anchore's Syft tool, and uploads the results to the GitHub Dependency | |
# submission API. | |
# For more information on the Anchore sbom-action usage | |
# and parameters, see https://github.com/anchore/sbom-action. For more | |
# information about the Anchore SBOM tool, Syft, see | |
# https://github.com/anchore/syft | |
name: Anchore Syft SBOM scan | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
Anchore-Build-Scan: | |
permissions: | |
contents: write # required to upload to the Dependency submission API | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag localbuild/testimage:latest | |
- name: Scan the image and upload dependency results | |
uses: anchore/sbom-action@df80a981bc6edbc4e220a492d3cbe9f5547a6e75 | |
with: | |
image: "localbuild/testimage:latest" | |
artifact-name: image.spdx.json | |
dependency-snapshot: true |