Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(refactor): merge in 3.x changes into main #180

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/scripts/validate.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
source "$BASH_ENV"
echo "${CODECOV_PUBLIC_PGP_KEY}" | \
gpg --no-default-keyring --keyring trustedkeys.kbx --import
gpg --no-default-keyring --import
# One-time step
sha_url="https://cli.codecov.io"
sha_url="${sha_url}/${codecov_version}/${codecov_os}"
sha_url="${sha_url}/${codecov_filename}.SHA256SUM"
echo "Downloading ${sha_url}"
curl -Os "$sha_url"
curl -Os "${sha_url}.sig"
gpgv "${codecov_filename}.SHA256SUM.sig" "${codecov_filename}.SHA256SUM"
shasum -a 256 -c "${codecov_filename}.SHA256SUM" || \
sha256sum -c "${codecov_filename}.SHA256SUM"
curl -Os $sha_url
curl -Os $sha_url".sig"
gpg --verify $codecov_filename.SHA256SUM.sig $codecov_filename.SHA256SUM
shasum -a 256 -c $codecov_filename.SHA256SUM || \
sha256sum -c $codecov_filename.SHA256SUM
Loading