From c529b57ee226bde6521c5f124b1f4361be91ec91 Mon Sep 17 00:00:00 2001 From: Erik Everts Date: Wed, 23 Mar 2022 09:15:38 +0100 Subject: [PATCH] Change git:// to https:// --- CHANGELOG.md | 3 +++ src/main.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0bfc78..79f35e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,3 +2,6 @@ ## v0.0.1 Initial release. + +## v0.0.2 +Changed unauthenticated git:// call to https:// to overcome issues documented here https://github.blog/2021-09-01-improving-git-protocol-security-github/ diff --git a/src/main.sh b/src/main.sh index 73bf4d8..0704cbf 100755 --- a/src/main.sh +++ b/src/main.sh @@ -25,7 +25,7 @@ function parseInputs { function installAmtool { if [[ "${amtoolVersion}" == "latest" ]]; then echo "Checking the latest version of Amtool" - amtoolVersion=$(git ls-remote --tags --refs --sort="v:refname" git://github.com/prometheus/alertmanager | grep -v '[-].*' | tail -n1 | sed 's/.*\///' | cut -c 2-) + amtoolVersion=$(git ls-remote --tags --refs --sort="v:refname" https://github.com/prometheus/alertmanager | grep -v '[-].*' | tail -n1 | sed 's/.*\///' | cut -c 2-) if [[ -z "${amtoolVersion}" ]]; then echo "Failed to fetch the latest version" exit 1