Skip to content

Commit 3b406a3

Browse files
committed
Match exact on SSH signature
1 parent aa5074b commit 3b406a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/gpg_key_commit_verification.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func ParseCommitWithSignature(c *git.Commit) *CommitVerification {
123123
}
124124

125125
// If this a SSH signature handle it differently
126-
if strings.Contains(c.Signature.Signature, "SSH") {
126+
if strings.HasPrefix(c.Signature.Signature, "-----BEGIN SSH SIGNATURE-----") {
127127
return ParseCommitWithSSHSignature(c, committer)
128128
}
129129

0 commit comments

Comments
 (0)