Skip to content

Commit 72b5c3f

Browse files
authored
Update SBOM generation and upload steps in workflow
Updated SBOM task
1 parent 69de7d5 commit 72b5c3f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ jobs:
4545
# ========================
4646
- name: Install CycloneDX .NET Tool
4747
run: dotnet tool install --global CycloneDX
48-
48+
4949
- name: Generate SBOM
5050
run: |
5151
export PATH="$PATH:$HOME/.dotnet/tools"
52-
cyclonedx dotnet -p YourLibrary.csproj -o sbom.xml -f xml
53-
52+
cyclonedx dotnet -s . -o sbom -f json
53+
5454
- name: Upload SBOM
5555
uses: actions/upload-artifact@v4
5656
with:
5757
name: sbom
58-
path: sbom.xml
58+
path: sbom/sbom.xml
5959

6060
- name: Pack
6161
if: matrix.dotnet-version == '9.x'

0 commit comments

Comments
 (0)