Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use the new SBOM generator tool. #743

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
}
}
}
9 changes: 8 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,9 @@ 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