Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
fix: add query support for token (self-hosted) (#453)
Browse files Browse the repository at this point in the history
* fix: add query support for token (self-hosted)

* fix: mask the token in output
  • Loading branch information
drazisil-codecov authored Jul 15, 2021
1 parent ced837c commit efedb65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SHA1SUM
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
e4d733969fda19538f8a2b2a357701ff92a4d212 codecov
7070b61784ebda10bb05046a156953aa1023dbd4 codecov
8b75c056bddd46e8dbfaa475935fbba6f6a33c77 env
2 changes: 1 addition & 1 deletion SHA256SUM
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
e277ff457c867d4becb8cfcf0ee4d984a736ba79f90a2428ab9703b2385944a8 codecov
c2059615276ccc1ddda18f4350e30b11d103c96cbd4659185dbf0e5d6548e144 codecov
8d0fa7c26d1e95f361b054649a1ad6afe5e2a1a0f128289149c7227e15eefc28 env
2 changes: 1 addition & 1 deletion SHA512SUM
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
5668cf545cbd0adcbb7f3c8077a8db60244b793a768aacfe97a489c33f8d6a3677cba3ebd0e934ef0b63e230e72fc1ab3d37ac5408b204e40d9267192f7a451c codecov
6774e73b3c96ed2d826e7728e96b3270f3d23c668eaa6cc5042efd1f911330957a95a686fe12b75880d03bcfb0350ed4cbe846c4a088ea686eb8fa1a03f04670 codecov
47689572d9bcf89be411a63129a5eb95257558b5d8df6ae96a973bde6c954e9bc943f6a87c2884440abc831637b967f2da748564ff0f61d99dcf9b0a1447d1df env
5 changes: 3 additions & 2 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -1803,12 +1803,13 @@ else
say " ${e}query:${x} $query"

# Full query (to display on terminal output)
query=$(echo "package=$package-$VERSION&$query" | tr -d ' ')
query=$(echo "package=$package-$VERSION&token=$token&$query" | tr -d ' ')
queryNoToken=$(echo "package=$package-$VERSION&token=<hidden>&$query" | tr -d ' ')

if [ "$ft_s3" = "1" ];
then
say "${e}->${x} Pinging Codecov"
say "$url/upload/v4?$query"
say "$url/upload/v4?$queryNoToken"
# shellcheck disable=SC2086,2090
res=$(curl $curl_s -X POST $cacert \
--retry 5 --retry-delay 2 --connect-timeout 2 \
Expand Down

0 comments on commit efedb65

Please sign in to comment.