Plugin: Add example for SPDX SBOM generator plugin #39
Workflow file for this run
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
# SPDX-License-Identifier: Apache-2.0 | |
name: Build Pull Request | |
on: [ pull_request ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ "^1.20" ] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Setup | |
run: make setup | |
#- name: Lint | |
# run: make lint | |
- name: Lint | |
run: make check-headers | |
- name: Build | |
run: make build | |
generate-and-validate: | |
name: Generate and validate SBOM file | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ "^1.20" ] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Generate SBOM | |
run: make generate | |
- name: Validate SBOM | |
uses: chainguard-dev/actions/setup-spdx@main | |
with: | |
sbom-path: examples/sbom.spdx |