Skip to content

Commit

Permalink
fix failure flag
Browse files Browse the repository at this point in the history
  • Loading branch information
samj committed Jul 18, 2024
1 parent a3cec0b commit 46ce1ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/scripts/verify-gpg-signatures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,17 @@ failure=false
for commit in $(git rev-list $commit_range); do
echo "Verifying commit: $commit"

# ... existing code ...
# Get the author of the commit
commit_author=$(git log -1 --format='%an <%ae>' $commit)
echo "Commit author: $commit_author"

# Get detailed signature information
echo "Attempting to verify commit signature..."
signature_info=$(git verify-commit "$commit" 2>&1) || true
echo "Raw signature info: $signature_info"

signature_status=$(git log -1 --format='%G?' $commit)
echo "Signature status: $signature_status"

# Check if it's a GPG signature (not SSH)
if [[ "$signature_status" != "G" && "$signature_status" != "U" && "$signature_status" != "E" ]]; then
Expand Down

0 comments on commit 46ce1ff

Please sign in to comment.