Skip to content

Commit 6d0f394

Browse files
authored
Update scripts to point to agent version 2.11.0 (#76)
* Update scripts to point to agent version 2.11.0 * updated macos scripts to require region and owner_email * updated CI to use email and region
1 parent 0ac8c0f commit 6d0f394

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
- name: Test install on macOS
2929
run: |
3030
chmod +x ./install-macos.sh
31-
VANTA_KEY=FAKEKEY ./install-macos.sh
31+
VANTA_KEY=FAKEKEY VANTA_OWNER_EMAIL=fake-email@vanta.com VANTA_REGION=us ./install-macos.sh
3232
- name: Check that it's running correctly
3333
run: /usr/local/vanta/vanta-cli status

install-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
set -e
88

9-
DEB_URL="https://agent-downloads.vanta.com/targets/versions/2.10.0/vanta-amd64.deb"
9+
DEB_URL="https://agent-downloads.vanta.com/targets/versions/2.11.0/vanta-amd64.deb"
1010
# Checksums need to be updated when DEB_URL is updated.
11-
DEB_CHECKSUM="d749eeb61526c4cd53455fbfed99418f274b272a54543f905dba613f851f3829"
11+
DEB_CHECKSUM="8763c60427111fc84a20662c92aa3b80b35b01825108220b24653e4d25e39d26"
1212
DEB_PATH="$(mktemp -d)/vanta.deb"
1313
DEB_INSTALL_CMD="dpkg -Ei"
1414

install-macos.sh

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ set -e
33

44
# Environment variables:
55
# VANTA_KEY (the Vanta per-domain secret key)
6-
# VANTA_OWNER_EMAIL (the email of the person who owns this computer. Ignored if VANTA_KEY is missing.)
7-
# VANTA_REGION (the region the Agent talks to, such as "us" or "eu".)
6+
# VANTA_OWNER_EMAIL (the email of the person who owns this computer)
7+
# VANTA_REGION (the region the Agent talks to, such as "us", "eu" or "aus".)
88

9-
PKG_URL="https://agent-downloads.vanta.com/targets/versions/2.10.0/vanta-universal.pkg"
9+
PKG_URL="https://agent-downloads.vanta.com/targets/versions/2.11.0/vanta-universal.pkg"
1010
# Checksum needs to be updated when PKG_URL is updated.
11-
CHECKSUM="15abe12e1dd8a220c768e7b3157fe0427e189bf2f8fdde1bd3ffec513ebc45b4"
11+
CHECKSUM="3ecd027dcc6079af06c3372fd0bee1d36f5304c5465d64c97779c6c05478323b"
1212
DEVELOPER_ID="Vanta Inc (632L25QNV4)"
1313
CERT_SHA_FINGERPRINT="D90D17FA20360BC635BC1A59B9FA5C6F9C9C2D4915711E4E0C182AA11E772BEF"
1414
PKG_PATH="$(mktemp -d)/vanta.pkg"
@@ -30,6 +30,21 @@ You must specify the VANTA_KEY environment variable in order to install the agen
3030
exit 1
3131
fi
3232

33+
if [ -z "$VANTA_OWNER_EMAIL" ]; then
34+
printf "\033[31m
35+
You must specify the VANTA_OWNER_EMAIL environment variable in order to install the agent.
36+
\n\033[0m\n"
37+
exit 1
38+
fi
39+
40+
if [ -z "$VANTA_REGION" ]; then
41+
printf "\033[31m
42+
You must specify the VANTA_REGION environment variable in order to install the agent.
43+
\n\033[0m\n"
44+
exit 1
45+
fi
46+
47+
3348
function onerror() {
3449
printf "\033[31m$ERROR_MESSAGE
3550
Something went wrong while installing the Vanta agent.

0 commit comments

Comments
 (0)