From 175a41966f76f9af45fc1732432b71e2c41bcfd9 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Fri, 14 Apr 2023 16:39:19 +0300 Subject: [PATCH] feat: check sha256sum --- action.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 14c29a35..ed5a5d74 100644 --- a/action.yml +++ b/action.yml @@ -76,7 +76,12 @@ runs: shell: bash run: | mkdir -p ~/bin/ - curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | tar xz -C ~/bin + cd ~/bin/ + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + cat coveralls-checksums.txt | grep coveralls-linux.tar.gz | sha256sum --check + tar -xzf coveralls-linux.tar.gz + rm coveralls-checksums.txt echo ~/bin >> $GITHUB_PATH - name: Install coveralls reporter (Windows) @@ -84,7 +89,12 @@ runs: shell: bash run: | mkdir -p ~/bin/ - curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip | zcat > ~/bin/coveralls.exe + cd ~/bin/ + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + cat coveralls-checksums.txt | grep coveralls-windows.zip | sha256sum --check + zcat coveralls-windows.zip > coveralls.exe + rm coveralls-checksums.txt echo ~/bin >> $GITHUB_PATH - name: Done report