Skip to content

Commit

Permalink
Change git:// to https://
Browse files Browse the repository at this point in the history
  • Loading branch information
erikeverts committed Mar 23, 2022
1 parent 9a280c1 commit c529b57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c529b57

Please sign in to comment.