File: ci-verify-attestations.sh

package info (click to toggle)
zsv 1.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,168 kB
  • sloc: ansic: 175,811; cpp: 56,301; sh: 3,635; makefile: 3,049; javascript: 577; cs: 90; awk: 70; python: 41; sql: 15
file content (18 lines) | stat: -rwxr-xr-x 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

echo "[INF] Running $0"

if [ "$ARTIFACT_DIR" = "" ]; then
  echo "[ERR] Set ARTIFACT_DIR before running $0 script."
  exit 1
fi

for ARTIFACT in "$ARTIFACT_DIR"/*; do
  echo "[INF] Verifying attestations... [$ARTIFACT]"
  gh attestation verify "$ARTIFACT" --repo "liquidaty/zsv"
  echo "[INF] Verified successfully! [$ARTIFACT]"
done

echo "[INF] --- [DONE] ---"