We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1530429 commit 3f19ce9Copy full SHA for 3f19ce9
1 file changed
entrypoint.sh
@@ -62,6 +62,17 @@ else
62
log_error "Downloaded file is missing or empty: ${TARGET}" "${ERR_INVALID_BINARY}"
63
fi
64
65
+ # Download checksum file
66
+ if ! curl -fsSL --retry 5 --keepalive-time 2 --location ${INSECURE_OPTION} \
67
+ "${DOWNLOAD_URL_PREFIX}/checksums.txt" -o "${GITHUB_ACTION_PATH}/checksums.txt"; then
68
+ log_error "Failed to download checksums.txt from ${DOWNLOAD_URL_PREFIX}." "${ERR_DOWNLOAD_FAILED}"
69
+ fi
70
+
71
+ # Verify checksum
72
+ if ! (cd "${GITHUB_ACTION_PATH}" && shasum -c checksums.txt --ignore-missing); then
73
+ log_error "Checksum verification failed for ${CLIENT_BINARY}." "${ERR_INVALID_BINARY}"
74
75
76
chmod +x "${TARGET}"
77
78
0 commit comments