File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3794,11 +3794,9 @@ functions:
37943794 script : |
37953795 # use AWS CLI to get the Kondukto API token from AWS Secrets Manager
37963796 kondukto_token=$(aws secretsmanager get-secret-value --secret-id "kondukto-token" --region "us-east-1" --query 'SecretString' --output text)
3797- if [ $? -ne 0 ]; then
3798- exit 1
3799- fi
3797+ set -e
38003798 # set the KONDUKTO_TOKEN environment variable
3801- echo "KONDUKTO_TOKEN=$kondukto_token" > ${workdir} /kondukto_credentials.env
3799+ echo "KONDUKTO_TOKEN=$kondukto_token" > /tmp /kondukto_credentials.env
38023800 - command : subprocess.exec
38033801 params :
38043802 working_dir : src
Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ set +x
1313echo " ${ARTIFACTORY_PASSWORD} " | docker login artifactory.corp.mongodb.com --username " ${ARTIFACTORY_USERNAME} " --password-stdin
1414set -x
1515
16+ trap_handler () {
17+ rm -f /tmp/kondukto_credentials.env
18+ }
19+ trap trap_handler ERR EXIT
20+
1621docker pull artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2.0
1722docker run --rm -v ${PWD} :/pwd artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2.0 update \
1823 --purls /pwd/dist/.purls.txt --sbom-out /pwd/dist/.sbom-lite.json
19- docker run --env-file ${workdir} /kondukto_credentials.env --rm -v ${PWD} :/pwd artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2.0 augment \
24+ docker run --env-file /tmp /kondukto_credentials.env --rm -v ${PWD} :/pwd artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2.0 augment \
2025 --repo mongodb-js/mongosh --branch ${KONDUKTO_BRANCH} --sbom-in /pwd/dist/.sbom-lite.json -sbom-out /pwd/dist/.sbom.json
You can’t perform that action at this time.
0 commit comments