Skip to content

Merge pull request #28 from frmscoe/dev #4

Merge pull request #28 from frmscoe/dev

Merge pull request #28 from frmscoe/dev #4

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# 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:
workflow_dispatch:
push:
branches: [ "dev", "main" ]
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@v4
- name: Scan the src directory and upload dependency results
uses: anchore/sbom-action@v0
with:
path: ./src/
artifact-name: src.spdx.json
dependency-snapshot: true