Skip to content

Commit 9ea5abb

Browse files
fix: add metadata info
1 parent 9242319 commit 9ea5abb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

dist/codecov.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,16 @@ else
8080
say "$g ->$x Downloading $b${cc_url}$x"
8181
curl -Os $cc_url
8282
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
83+
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
84+
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
85+
say " Version: $b$version$x"
8386
say " "
8487
fi
8588
if [ "$CC_SKIP_VALIDATION" = "true" ] || [ -n "$CC_BINARY" ];
8689
then
8790
say "$r==>$x Bypassing validation as requested by user"
8891
else
89-
CC_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
92+
CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
9093
echo "${CC_PUBLIC_PGP_KEY}" | \
9194
gpg --no-default-keyring --import
9295
# One-time step

scripts/download.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ else
4040
codecov_url="$codecov_url/${codecov_os}/${codecov_filename}"
4141
say "$g ->$x Downloading $b${codecov_url}$x"
4242
curl -Os $codecov_url
43-
4443
say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"
44+
45+
version_url="https://cli.codecov.io/${codecov_os}/${CODECOV_VERSION}"
46+
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
47+
say " Version: $b$version$x"
4548
say " "
4649
fi

scripts/set_validation_key.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CODECOV_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
1+
CODECOV_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)

0 commit comments

Comments
 (0)