Skip to content

Commit

Permalink
Fix publish signed commit check (#697)
Browse files Browse the repository at this point in the history
Fix publish signed commit check
  • Loading branch information
dodgez-stripe authored Dec 12, 2024
1 parent 08725ce commit a93850c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ EOF
verify_commit_is_signed() {
local commit_hash=$(git log -1 --format="%H")

if ! git verify-commit "$commit_hash" &> /dev/null; then
if git show --no-patch --pretty=format:"%G?" "$commit_hash" | grep "N" &> /dev/null; then
echo "Error! Commit $commit_hash is not signed"
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"
exit 1
Expand Down

0 comments on commit a93850c

Please sign in to comment.