Skip to content

Commit 57f010d

Browse files
replace manual slsa-verifier installation with action (#1585)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
1 parent 6770304 commit 57f010d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,8 @@ jobs:
5252
steps:
5353
# Note: this will be replaced with the GHA in the future.
5454
# See https://github.com/slsa-framework/slsa-verifier/issues/95
55-
- name: Install the verifier
56-
env:
57-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
run: |
59-
set -euo pipefail
60-
gh -R slsa-framework/slsa-verifier release download v1.2.0 -p "slsa-verifier-linux-amd64"
61-
chmod ug+x slsa-verifier-linux-amd64
62-
# Note: see https://github.com/slsa-framework/slsa-verifier/blob/main/SHA256SUM.md
63-
COMPUTED_HASH=$(sha256sum slsa-verifier-linux-amd64 | cut -d ' ' -f1)
64-
EXPECTED_HASH="37db23392c7918bb4e243cdb097ed5f9d14b9b965dc1905b25bc2d1c0c91bf3d"
65-
if [[ "$EXPECTED_HASH" != "$COMPUTED_HASH" ]];then
66-
echo "error: expected $EXPECTED_HASH, computed $COMPUTED_HASH"
67-
exit 1
68-
fi
55+
- name: Install SLSA verifier
56+
uses: slsa-framework/slsa-verifier/actions/installer@v2.0.1
6957
- name: Download assets
7058
env:
7159
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)