mirror of
https://github.com/anchore/grype
synced 2024-11-10 14:44:12 +00:00
remove env variable dependencies and keychain from signing script (#864)
This commit is contained in:
parent
d264309035
commit
8fe761b41f
1 changed files with 0 additions and 21 deletions
21
.github/scripts/apple-signing/setup-prod.sh
vendored
21
.github/scripts/apple-signing/setup-prod.sh
vendored
|
@ -14,23 +14,6 @@ if [ -z "$APPLE_DEVELOPER_ID_CERT_PASS" ]; then
|
||||||
exit_with_error "APPLE_DEVELOPER_ID_CERT_PASS not set"
|
exit_with_error "APPLE_DEVELOPER_ID_CERT_PASS not set"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$DOCKER_USERNAME" ]; then
|
|
||||||
exit_with_error "DOCKER_USERNAME not set"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$DOCKER_PASSWORD" ]; then
|
|
||||||
exit_with_error "DOCKER_PASSWORD not set"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$GHCR_USERNAME" ]; then
|
|
||||||
exit_with_error "GHCR_USERNAME not set"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$GHCR_PASSWORD" ]; then
|
|
||||||
exit_with_error "GHCR_PASSWORD not set"
|
|
||||||
fi
|
|
||||||
set -u
|
|
||||||
|
|
||||||
# setup_signing
|
# setup_signing
|
||||||
#
|
#
|
||||||
# preps the MAC_SIGNING_IDENTITY env var for use in the signing process, using production certificate material
|
# preps the MAC_SIGNING_IDENTITY env var for use in the signing process, using production certificate material
|
||||||
|
@ -46,8 +29,4 @@ setup_signing() {
|
||||||
|
|
||||||
# Make this new keychain the user's default keychain, so that codesign will be able to find this certificate when we specify it during signing.
|
# Make this new keychain the user's default keychain, so that codesign will be able to find this certificate when we specify it during signing.
|
||||||
security default-keychain -d "user" -s "${KEYCHAIN_PATH}"
|
security default-keychain -d "user" -s "${KEYCHAIN_PATH}"
|
||||||
|
|
||||||
commentary "log into docker -- required for publishing (since the default keychain has now been replaced)"
|
|
||||||
echo "${DOCKER_PASSWORD}" | docker login docker.io -u "${DOCKER_USERNAME}" --password-stdin
|
|
||||||
echo "${GHCR_PASSWORD}" | docker login ghcr.io -u "${GHCR_USERNAME}" --password-stdin
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue