Skip to content

Commit e067fa9

Browse files
committed
chore: Update SBOM generator
Release 2.2.1 contains the same code as 2.2.0, but the 2.2.0 release failed after only releasing some of the packages. The 2.2.1 release should be complete with all packages. This commit updates the SBOM generator to the latest version, and changes the build script to avoid similar partial failures in the future. Release-As: 2.2.1
1 parent 5416a41 commit e067fa9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"Google.Cloud.Tools.SbomGenerator": {
12-
"version": "0.3.0",
12+
"version": "0.4.0",
1313
"commands": [
1414
"generate-sbom"
1515
]

.kokoro/autorelease.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@ then
4545
echo "Pushing NuGet packages"
4646
# Push the changes to nuget.
4747
cd ./tmp/release/nupkg
48+
49+
# First generate all the SBOMs.
4850
for pkg in *.nupkg
4951
do
5052
dotnet generate-sbom $pkg
53+
done
54+
55+
# Only start pushing to NuGet when SBOM generation has succeeded.
56+
for pkg in *.nupkg
57+
do
5158
dotnet nuget push -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY $pkg
5259
done
5360
cd ../../..

0 commit comments

Comments
 (0)