Skip to content

Commit

Permalink
chore: Use the new SBOM generator tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Nov 29, 2023
1 parent 4f747ca commit 8f81a77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"commands": [
"release-progress-reporter"
]
},
"Google.Cloud.Tools.SbomGenerator": {
"version": "0.3.0",
"commands": [
"generate-sbom"
]
}
}
}
8 changes: 7 additions & 1 deletion .kokoro/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SCRIPT_DIR=$(dirname "$SCRIPT")

cd $SCRIPT_DIR

# Restore tools, in particular the SBOM generator
dotnet tool restore
# Make sure secrets are loaded in a well known location before running releasetool
source ./populatesecrets.sh

Expand Down Expand Up @@ -36,4 +38,8 @@ export NUGET_API_KEY="$(cat "$SECRETS_LOCATION"/google-apis-nuget-api-key)"

# Push the changes to nuget.
cd ./releasebuild/nuget
for pkg in *.nupkg; do dotnet nuget push -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY $pkg; done

for pkg in *.nupkg; do
dotnet generate-sbom $pkg
dotnet nuget push -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY $pkg;
done

0 comments on commit 8f81a77

Please sign in to comment.