Skip to content

Commit

Permalink
Update 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 b21f48a commit cbe0a1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/on-release-gen-sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:

jobs:
generate-src-sbom:
env:
SBOM_FILE_NAME: "${{ github.event.repository.name }}-sbom.spdx.json"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Parse release tag
run: echo RELEASE_TAG=$(echo $GITHUB_REF | cut -d '/' -f 3) | tee -a $GITHUB_ENV
- name: Set output filename
run: echo SBOM_OUTPUT_FILE="${{ github.event.repository.name }}-${{ env.RELEASE_TAG }}-sbom.spdx.json" | tee -a $GITHUB_ENV
- name: Generate SBOM
uses: anchore/sbom-action@v0
with:
Expand All @@ -22,4 +22,5 @@ jobs:
path: null
file: go.mod
format: spdx-json
output-file: ${{ env.SBOM_FILE_NAME }}
output-file: ${{ env.SBOM_OUTPUT_FILE }}
artifact-name: ${{ env.SBOM_OUTPUT_FILE }}

0 comments on commit cbe0a1d

Please sign in to comment.