File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate SBOM with SBOM tool and load into ScanCode.io
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ push :
7+ branches :
8+ - main
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-24.04
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
21+ with :
22+ dotnet-version : 8.0.x
23+
24+ - name : Build
25+ run : dotnet build Sample.sln --output buildOutput
26+
27+ - name : Generate SBOM
28+ run : |
29+ curl -Lo $RUNNER_TEMP/sbom-tool https://github.com/microsoft/sbom-tool/releases/latest/download/sbom-tool-linux-x64
30+ chmod +x $RUNNER_TEMP/sbom-tool
31+ $RUNNER_TEMP/sbom-tool generate -b ./buildOutput -bc . -pn Test -pv 1.0.0 -ps MyCompany -nsb https://sbom.mycompany.com -V Verbose
32+
33+ - name : Upload a Build Artifact
34+ uses : actions/upload-artifact@v4
35+ with :
36+ path : buildOutput
You can’t perform that action at this time.
0 commit comments