-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONGOCRYPT-777 update scripts and release instructions for SilkBomb 2…
….0 (#964) * Remove silk-create-asset-group.sh * Remove Earthly sbom-download * Update Earthly targets and commands for SilkBomb 2.0 * Update release instructions for SilkBomb 2.0
- Loading branch information
1 parent
0110c05
commit 95f8281
Showing
5 changed files
with
149 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
||
: "${artifactory_username:?}" | ||
: "${artifactory_password:?}" | ||
: "${branch_name:?}" | ||
: "${KONDUKTO_TOKEN:?}" | ||
|
||
command -v podman >/dev/null || { | ||
echo "missing required program podman" 1>&2 | ||
exit 1 | ||
} | ||
|
||
podman login --password-stdin --username "${artifactory_username:?}" artifactory.corp.mongodb.com <<<"${artifactory_password:?}" | ||
|
||
silkbomb="artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2.0" | ||
|
||
# Ensure latest version of SilkBomb is being used. | ||
podman pull "${silkbomb:?}" | ||
|
||
silkbomb_augment_flags=( | ||
--repo mongodb/libmongocrypt | ||
--branch "${branch_name:?}" | ||
--sbom-in /pwd/etc/cyclonedx.sbom.json | ||
--sbom-out /pwd/cyclonedx.augmented.sbom.json | ||
|
||
# Any notable updates to the Augmented SBOM version should be done manually after careful inspection. | ||
# Otherwise, it should be equal to the SBOM Lite version, which should normally be `1`. | ||
--no-update-sbom-version | ||
) | ||
|
||
# First validate the SBOM Lite. | ||
podman run -it --rm -v "$(pwd):/pwd" "${silkbomb:?}" \ | ||
validate --purls /pwd/etc/purls.txt --sbom-in /pwd/etc/cyclonedx.sbom.json --exclude jira | ||
|
||
# Then download the Augmented SBOM. Allow the timestamp to be updated. | ||
podman run -it --rm -v "$(pwd):/pwd" --env 'KONDUKTO_TOKEN' "${silkbomb:?}" \ | ||
augment "${silkbomb_augment_flags[@]:?}" | ||
|
||
[[ -f ./cyclonedx.augmented.sbom.json ]] || { | ||
echo "failed to download Augmented SBOM" 1>&2 | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.