Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
23 changes: 19 additions & 4 deletions install-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down