Skip to content

Commit

Permalink
Create msft-sbom-tool.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rufer7 authored Nov 12, 2024
1 parent 62358e3 commit 514b44b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/msft-sbom-tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Microsoft SBOM Tool demo

on:
push:
branches: ["main"]

jobs:
scan:
name: Create SBOM of .NET solution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build src/ReactAndAspNetCoreApp.sln --output buildOutput
- name: Generate SBOM
run: |
curl -Lo $RUNNER_TEMP/sbom-tool https://github.com/microsoft/sbom-tool/releases/latest/download/sbom-tool-linux-x64
chmod +x $RUNNER_TEMP/sbom-tool
$RUNNER_TEMP/sbom-tool generate -b ./buildOutput -bc . -pn Test -pv 0.0.1 -ps ArbitraryCompany -nsb https://sbom.arbitrary.com -V Verbose
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
path: buildOutput

0 comments on commit 514b44b

Please sign in to comment.