summaryrefslogtreecommitdiffhomepage
path: root/scripts/utils/commit-verification
blob: ffd38043fd20f64b6d5a2a2ac185abd30d4ac45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

set -eu

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"

# shellcheck disable=SC1091
source ./log

if ! git verify-commit HEAD; then
  log_error "Current commit failed signature check"
  exit 1
fi