Skip to content

Commit 4d5d106

Browse files
committed
Verify codecov's uploader script before running
There was a security breach at codecov. See: https://about.codecov.io/security-update/
1 parent 7621126 commit 4d5d106

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/code-coverage.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ jobs:
4646
run: bb ./script/coverage.clj
4747

4848
- name: Upload Code Coverage Results
49-
run: bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
49+
run: |
50+
echo "Downloading codecov uploader script"
51+
curl -s https://codecov.io/bash > codecov
52+
echo "Verifying codedov uploader script"
53+
VERSION=$(grep 'VERSION=\".*\"' codecov | cut -d'"' -f2);
54+
for i in 1 256 512
55+
do
56+
sha${i}sum -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM")
57+
done
58+
echo "Uploading to codecov"
59+
bash codecov -f target/coverage/codecov.json

0 commit comments

Comments
 (0)