File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,19 +60,19 @@ jobs:
6060 VERSION=$(git rev-parse --short HEAD)
6161 fi
6262 echo "Version for SBOM : $VERSION"
63-
64- mkdir -p sbom/$VERSION
65- dotnet tool run dotnet-CycloneDX OpenCode/OpenCode.csproj -o sbom/$VERSION -F json
6663
67-
64+ SBOM_DIR="sbom/${VERSION}/dotnet-${{ matrix.dotnet-version }}"
65+ mkdir -p "$SBOM_DIR"
66+ dotnet tool run dotnet-CycloneDX OpenCode/OpenCode.csproj -o "$SBOM_DIR" -F json
67+
6868 # Set step output
6969 echo "version=$VERSION" >> $GITHUB_OUTPUT
7070
7171 - name : Upload SBOM artifact
7272 uses : actions/upload-artifact@v4
7373 with :
74- name : SBOM-${{ steps.generate_sbom.outputs.version }}
75- path : sbom/ ${{ steps.generate_sbom.outputs.version }}/bom.json
74+ name : SBOM-${{ steps.generate_sbom.outputs.version }}-dotnet-${{ matrix.dotnet-version }}
75+ path : ${{ steps.generate_sbom.outputs.sbom_dir }}/
7676
7777
7878 - name : Pack
You can’t perform that action at this time.
0 commit comments