Skip to content

Commit ca2a9dd

Browse files
authored
feat: check sha256sum (#166)
1 parent 045a251 commit ca2a9dd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

action.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,25 @@ runs:
7676
shell: bash
7777
run: |
7878
mkdir -p ~/bin/
79-
curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | tar xz -C ~/bin
79+
cd ~/bin/
80+
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz
81+
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
82+
cat coveralls-checksums.txt | grep coveralls-linux.tar.gz | sha256sum --check
83+
tar -xzf coveralls-linux.tar.gz
84+
rm coveralls-checksums.txt
8085
echo ~/bin >> $GITHUB_PATH
8186
8287
- name: Install coveralls reporter (Windows)
8388
if: startsWith(runner.os, 'Windows')
8489
shell: bash
8590
run: |
8691
mkdir -p ~/bin/
87-
curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip | zcat > ~/bin/coveralls.exe
92+
cd ~/bin/
93+
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip
94+
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
95+
cat coveralls-checksums.txt | grep coveralls-windows.zip | sha256sum --check
96+
zcat coveralls-windows.zip > coveralls.exe
97+
rm coveralls-checksums.txt
8898
echo ~/bin >> $GITHUB_PATH
8999
90100
- name: Done report

0 commit comments

Comments
 (0)