-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstaller-sbom.ps1
24 lines (18 loc) · 1.13 KB
/
installer-sbom.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Param(
[Parameter(Mandatory=$true)]
[Alias("v")]
[string]$version
)
dotnet sbom-tool generate -b extractorbuild\ -bc .\ExtractorLauncher\ -pn OpcuaExtractor -pv $version -ps Cognite -nsb https://sbom.cognite.com
dotnet sbom-tool generate -b managerbuild\ -bc .\OpcUaServiceManager\ -pn OpcUaServiceManager -pv $version -ps Cognite -nsb https://sbom.cognite.com
mkdir manifests
mv extractorbuild\_manifest\spdx_2.2\manifest.spdx.json manifests\manifest.extractor.spdx.json
mv extractorbuild\_manifest\spdx_2.2\manifest.spdx.json.sha256 manifests\manifest.extractor.spdx.json.sha256
mv managerbuild\_manifest\spdx_2.2\manifest.spdx.json manifests\manifest.manager.spdx.json
mv managerbuild\_manifest\spdx_2.2\manifest.spdx.json.sha256 manifests\manifest.manager.spdx.json.sha256
rm -r extractorbuild\_manifest\
rm -r managerbuild\_manifest\
dotnet sbom-tool generate -b manifests\ -pn OpcuaExtractor -pv $version -ps Cognite -nsb https://sbom.cognite.com
mv manifests\_manifest\spdx_2.2\manifest.spdx.json manifests\manifest.spdx.json
mv manifests\_manifest\spdx_2.2\manifest.spdx.json.sha256 manifests\manifest.spdx.json.sha256
rm -r manifests\_manifest\