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