File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,16 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
15
+ - name : Set SBOM-Builder version by tag
16
+ run : |
17
+ mkdir dist
18
+ sed -e "s/0.0.0-development-version/${GITHUB_REF/refs\/tags\/v}/g" cmake/sbom.cmake > dist/sbom.cmake
19
+
15
20
- name : Upload sbom.cmake to release
16
21
uses : svenstaro/upload-release-action@v1-release
17
22
with :
18
23
repo_token : ${{ secrets.GITHUB_TOKEN }}
19
24
tag : ${{ github.ref }}
20
- file : cmake /sbom.cmake
25
+ file : dist /sbom.cmake
21
26
file_glob : true
22
27
overwrite : true
Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ include(GNUInstallDirs)
9
9
10
10
find_package (Git)
11
11
12
+ set (SBOM_BUILDER_VERSION "0.0.0-development-version" CACHE STRING "CMake-SBOM-Builder version" )
13
+
14
+ if (SBOM_BUILDER_VERSION MATCHES "development-version" )
15
+ message ( WARNING "Your project is using an unstable development version of CMake-SBOM-Builder. \
16
+ Consider switching to a stable release. https://github.com/sodgeit/CMake-SBOM-Builder" )
17
+ endif ()
18
+
12
19
function (version_show)
13
20
message (STATUS "${PROJECT_NAME} version is ${GIT_VERSION} " )
14
21
endfunction ()
@@ -467,7 +474,7 @@ SPDXID: SPDXRef-DOCUMENT
467
474
DocumentName: ${doc_name}
468
475
DocumentNamespace: ${SBOM_GENERATE_NAMESPACE}
469
476
Creator: Organization: ${SBOM_GENERATE_SUPPLIER}
470
- Creator: Tool: cmake-sbom
477
+ Creator: Tool: CMake-SBOM-Builder- ${SBOM_BUILDER_VERSION}
471
478
CreatorComment: <text>This SPDX document was created from CMake ${CMAKE_VERSION} , using CMake-SBOM-Builder from https://github.com/sodgeit/CMake-SBOM-Builder</text>
472
479
Created: ${NOW_UTC} \$ {SBOM_EXT_DOCS}
473
480
You can’t perform that action at this time.
0 commit comments