feat: verify commit signature before push

Check commit signature and if it fails, check if any signed tags
associated with commit exist from a keyring that can be found only
locally.

For: https://github.com/ben-grande/qusal/issues/105
This commit is contained in:
Ben Grande 2024-10-25 11:18:52 +02:00
parent efe0fa6ac7
commit 8fbd9a063c
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
7 changed files with 139 additions and 4 deletions

View file

@ -22,7 +22,7 @@ block_max_chars(){
char_value="${2}"
less_than="${3}"
if test "${#char_value}" -ge "${less_than}"; then
err_msg="Error: ${char_key} is too long. Must be <${less_than} chars."
err_msg="error: ${char_key} is too long. Must be <${less_than} chars."
printf '%s\n' "${err_msg}" >&2
printf '%s\n' "Key contents: ${char_value}" >&2
exit 1