diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f6a3f13..62947c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,6 @@ jobs: - name: Test install on macOS run: | chmod +x ./install-macos.sh - VANTA_KEY=FAKEKEY ./install-macos.sh + VANTA_KEY=FAKEKEY VANTA_OWNER_EMAIL=fake-email@vanta.com VANTA_REGION=us ./install-macos.sh - name: Check that it's running correctly run: /usr/local/vanta/vanta-cli status diff --git a/install-linux.sh b/install-linux.sh index 81e2895..9548312 100755 --- a/install-linux.sh +++ b/install-linux.sh @@ -6,9 +6,9 @@ set -e -DEB_URL="https://agent-downloads.vanta.com/targets/versions/2.10.0/vanta-amd64.deb" +DEB_URL="https://agent-downloads.vanta.com/targets/versions/2.11.0/vanta-amd64.deb" # Checksums need to be updated when DEB_URL is updated. -DEB_CHECKSUM="d749eeb61526c4cd53455fbfed99418f274b272a54543f905dba613f851f3829" +DEB_CHECKSUM="8763c60427111fc84a20662c92aa3b80b35b01825108220b24653e4d25e39d26" DEB_PATH="$(mktemp -d)/vanta.deb" DEB_INSTALL_CMD="dpkg -Ei" diff --git a/install-macos.sh b/install-macos.sh index dff9453..8c16a78 100755 --- a/install-macos.sh +++ b/install-macos.sh @@ -3,12 +3,12 @@ set -e # Environment variables: # VANTA_KEY (the Vanta per-domain secret key) -# VANTA_OWNER_EMAIL (the email of the person who owns this computer. Ignored if VANTA_KEY is missing.) -# VANTA_REGION (the region the Agent talks to, such as "us" or "eu".) +# VANTA_OWNER_EMAIL (the email of the person who owns this computer) +# VANTA_REGION (the region the Agent talks to, such as "us", "eu" or "aus".) -PKG_URL="https://agent-downloads.vanta.com/targets/versions/2.10.0/vanta-universal.pkg" +PKG_URL="https://agent-downloads.vanta.com/targets/versions/2.11.0/vanta-universal.pkg" # Checksum needs to be updated when PKG_URL is updated. -CHECKSUM="15abe12e1dd8a220c768e7b3157fe0427e189bf2f8fdde1bd3ffec513ebc45b4" +CHECKSUM="3ecd027dcc6079af06c3372fd0bee1d36f5304c5465d64c97779c6c05478323b" DEVELOPER_ID="Vanta Inc (632L25QNV4)" CERT_SHA_FINGERPRINT="D90D17FA20360BC635BC1A59B9FA5C6F9C9C2D4915711E4E0C182AA11E772BEF" PKG_PATH="$(mktemp -d)/vanta.pkg" @@ -30,6 +30,21 @@ You must specify the VANTA_KEY environment variable in order to install the agen exit 1 fi +if [ -z "$VANTA_OWNER_EMAIL" ]; then + printf "\033[31m +You must specify the VANTA_OWNER_EMAIL environment variable in order to install the agent. +\n\033[0m\n" + exit 1 +fi + +if [ -z "$VANTA_REGION" ]; then + printf "\033[31m +You must specify the VANTA_REGION environment variable in order to install the agent. +\n\033[0m\n" + exit 1 +fi + + function onerror() { printf "\033[31m$ERROR_MESSAGE Something went wrong while installing the Vanta agent.