File tree Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change 1010permissions :
1111 contents : read
1212
13+ env :
14+ IMAGE_REFERENCE : " python:3.13.0-slim"
15+
1316jobs :
14- build :
17+ generate-and-load-sbom :
1518 runs-on : ubuntu-24.04
16- steps :
17- - uses : actions/checkout@v4
19+ # steps:
20+ # - uses: actions/checkout@v4
1821
1922 - name : Setup .NET
2023 uses : actions/setup-dotnet@v4
2124 with :
2225 dotnet-version : 8.0.x
2326
24- - name : Build
25- run : dotnet build Sample.sln --output buildOutput
27+ # - name: Build
28+ # run: dotnet build Sample.sln --output buildOutput
2629
27- - name : Generate SBOM
30+ - name : Download SBOM Tool
2831 run : |
2932 curl -Lo $RUNNER_TEMP/sbom-tool https://github.com/microsoft/sbom-tool/releases/latest/download/sbom-tool-linux-x64
3033 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
3234
33- - name : Upload a Build Artifact
35+ - name : Generate SBOM for Docker image
36+ run : |
37+ mkdir -p sbom-output
38+ $RUNNER_TEMP/sbom-tool generate \
39+ -di ${{ env.IMAGE_REFERENCE }} \
40+ -pn DockerImage \
41+ -pv 1.0.0 \
42+ -ps Company \
43+ -nsb https://sbom.company.com \
44+ -m sbom-output \
45+ -V Verbose
46+
47+ - name : Upload SBOM artifact
3448 uses : actions/upload-artifact@v4
3549 with :
36- path : buildOutput
50+ name : sbom-tool-sbom
51+ path : sbom-output
You can’t perform that action at this time.
0 commit comments