Skip to content

Commit

Permalink
Change git:// to https:// (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: Peiman Jafari <[email protected]>
  • Loading branch information
erikeverts and peimanja authored Mar 21, 2022
1 parent 6862ec0 commit 741be6f
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. only supporting `promtool check rules` and `promtool check config`

## 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 @@ -32,7 +32,7 @@ function parseInputs {
function installPromtool {
if [[ "${promtoolVersion}" == "latest" ]]; then
echo "Checking the latest version of Promtool"
promtoolVersion=$(git ls-remote --tags --refs --sort="v:refname" git://github.com/prometheus/prometheus | grep -v '[-].*' | tail -n1 | sed 's/.*\///' | cut -c 2-)
promtoolVersion=$(git ls-remote --tags --refs --sort="v:refname" https://github.com/prometheus/prometheus | grep -v '[-].*' | tail -n1 | sed 's/.*\///' | cut -c 2-)
if [[ -z "${promtoolVersion}" ]]; then
echo "Failed to fetch the latest version"
exit 1
Expand Down

0 comments on commit 741be6f

Please sign in to comment.