File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 77 - " stackablectl-[0-9]+.[0-9]+.[0-9]+**"
88
99env :
10+ CARGO_CYCLONEDX_VERSION : 0.5.7
1011 RUST_VERSION : 1.87.0
1112 CARGO_TERM_COLOR : always
1213 CARGO_INCREMENTAL : " 0"
@@ -50,14 +51,25 @@ jobs:
5051 with :
5152 go-version : ' ^1.22.2'
5253
54+ - name : Install cargo-cyclonedx
55+ run : cargo install --locked cargo-cyclonedx@${{ env.CARGO_CYCLONEDX_VERSION }}
56+
5357 - name : Build Binary
5458 if : matrix.os != 'windows-latest'
5559 run : cargo build --target ${{ matrix.target }} --release --package stackablectl
5660
61+ - name : Generate SBOM
62+ run : cargo cyclonedx --all --spec-version 1.5 --describe binaries
63+
5764 - name : Rename Binary
5865 run : mv target/${{ matrix.target }}/release/stackablectl${{ matrix.file-suffix }} stackablectl-${{ matrix.target }}${{ matrix.file-suffix }}
5966
60- - name : Upload Release Binary
67+ - name : Rename SBOM
68+ run : mv rust/stackablectl/stackablectl_bin.cdx.xml stackablectl-${{ matrix.target }}.cdx.xml
69+
70+ - name : Upload Release Binary and SBOM
6171 uses : softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
6272 with :
63- files : stackablectl-${{ matrix.target }}${{ matrix.file-suffix }}
73+ files : |
74+ stackablectl-${{ matrix.target }}${{ matrix.file-suffix }}
75+ stackablectl-${{ matrix.target }}.cdx.xml
You can’t perform that action at this time.
0 commit comments