-
Notifications
You must be signed in to change notification settings - Fork 687
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
Added codecov checksum validation, updated CircleCI machine to Focal. #5907
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,15 @@ function docker_run() { | |
|
||
# If this is a CI run, pass CodeCov settings into the container. | ||
if [ -n "${CIRCLE_BRANCH:-}" ] ; then | ||
ci_env=$(bash <(curl -s https://codecov.io/env)) | ||
tmpdir=$(mktemp -d -t codecov-XXXX) | ||
curl -s https://codecov.io/bash > "$tmpdir"/codecov; # env isn't in SHA256SUM yet!! | ||
curl -s https://codecov.io/env > "$tmpdir"/env; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Looks like it is now: https://github.com/codecov/codecov-bash/blob/1b4b96ac38946b20043b3ca3bad88d95462259b6/SHA256SUM |
||
VERSION=$(curl --silent "https://api.github.com/repos/codecov/codecov-bash/releases/latest" | grep '"tag_name":' |sed -E 's/.*"([^"]+)".*/\1/') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: |
||
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/"${VERSION}"/SHA256SUM > "$tmpdir"/codecov-hashes | ||
pushd "$tmpdir" && shasum -a 256 -c --ignore-missing codecov-hashes && popd | ||
chmod +x "$tmpdir"/env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: does |
||
|
||
ci_env=$(/bin/bash "$tmpdir"/env) | ||
else | ||
ci_env="" | ||
fi | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Machine images are set to 20.04 through all machine-executor jobs in the CI config. 👍