Skip to content

Commit

Permalink
ci: verify codecov script before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Apr 20, 2021
1 parent cbd23b9 commit c452759
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bash <(curl -s https://codecov.io/bash)
curl -s https://codecov.io/bash > codecov
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA256SUM > codecov.sha256
if ! sha256sum -c --ignore-missing --status codecov.sha256 ; then
echo "Download checksum verification failed"
exit 1
fi
bash < codecov
8 changes: 7 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bash <(curl -s https://codecov.io/bash)
curl -s https://codecov.io/bash > codecov
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA256SUM > codecov.sha256
if ! sha256sum -c --ignore-missing --status codecov.sha256 ; then
echo "Download checksum verification failed"
exit 1
fi
bash < codecov
9 changes: 8 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,11 @@ jobs:
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash)
run: |
curl -s https://codecov.io/bash > codecov
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA256SUM > codecov.sha256
if ! sha256sum -c --ignore-missing --status codecov.sha256 ; then
echo "Download checksum verification failed"
exit 1
fi
bash < codecov

0 comments on commit c452759

Please sign in to comment.