Skip to content

Commit

Permalink
Create on-release-gen-sbom.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
komish authored May 30, 2024
1 parent 6777d79 commit 0b91dc4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/on-release-gen-sbom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Generate SBOM on release

on:
release:
types: [published]

jobs:
generate-src-sbom:
runs-on: ubuntu-latest
steps:
- name: DEBUG print release information from environment
run: |
echo 'SHA: ${{ github.sha }}'
echo 'REF: ${{ github.ref }}'
- uses: actions/checkout@v4
- name: Inspect repo information
run: |
git branch -v
git tag --list
- name: Generate SBOM
uses: anchore/sbom-action@v0
with:
file: ./go.mod
format: spdx-json

0 comments on commit 0b91dc4

Please sign in to comment.