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

@ -21,7 +21,7 @@ esac
## update on save.
if ! vim -e -c 'setf markdown' -c 'if !exists(":GenTocGFM") | cq | endif' -c q
then
err_msg="Error: Vim Plugin mzlogin/vim-markdown-toc isn't installed."
err_msg="error: Vim Plugin mzlogin/vim-markdown-toc isn't installed."
printf '%s\n' "${err_msg}" >&2
exit 1
fi
@ -29,7 +29,7 @@ fi
for f in "${@}"; do
if ! test -f "${f}"; then
printf '%s\n' "Error: Not a regular file: ${f}" >&2
printf '%s\n' "error: Not a regular file: ${f}" >&2
exit 1
fi
if ! grep -q -e "^## Table of Contents$" -- "${f}"; then