File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 66
77set -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 "
1212DEB_PATH=" $( mktemp -d) /vanta.deb"
1313DEB_INSTALL_CMD=" dpkg -Ei"
1414
Original file line number Diff line number Diff line change 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 "
1212DEVELOPER_ID=" Vanta Inc (632L25QNV4)"
1313CERT_SHA_FINGERPRINT=" D90D17FA20360BC635BC1A59B9FA5C6F9C9C2D4915711E4E0C182AA11E772BEF"
1414PKG_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
3131fi
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+
3348function onerror() {
3449 printf " \033[31m$ERROR_MESSAGE
3550Something went wrong while installing the Vanta agent.
You can’t perform that action at this time.
0 commit comments