Skip to content

Commit a93850c

Browse files
Fix publish signed commit check (#697)
Fix publish signed commit check
1 parent 08725ce commit a93850c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/publish

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ EOF
6969
verify_commit_is_signed() {
7070
local commit_hash=$(git log -1 --format="%H")
7171

72-
if ! git verify-commit "$commit_hash" &> /dev/null; then
72+
if git show --no-patch --pretty=format:"%G?" "$commit_hash" | grep "N" &> /dev/null; then
7373
echo "Error! Commit $commit_hash is not signed"
7474
echo "Please follow https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account and sign your commit"
7575
exit 1

0 commit comments

Comments
 (0)