git verify-commit HEAD
tlog index: 19705860
gitsign: Signature made using certificate ID 0x4c3e220e44f747df6ac50eaf7fe7435c962e4aa4 | CN=sigstore-intermediate,O=sigstore.dev
gitsign: Good signature from [[email protected]]
Validated Git signature: true
Validated Rekor entry: true
You can use search.sigstore.dev to view the entries about the commit sha
Log Index https://search.sigstore.dev/?logIndex=19705860
Commit sha https://search.sigstore.dev/?commitSha=2554b88e259b787db742abcaede8c4ccd05bd5ae
Output information about the certificate used for signing
git cat-file commit HEAD | sed -n '/BEGIN/, /END/p' | sed 's/^ //g' | sed 's/gpgsig //g' | sed 's/SIGNED MESSAGE/PKCS7/g' | openssl pkcs7 -print -print_certs -text
gitsign show will print an in-toto style predicate for the specified revision.
gitsign show
{
"_type": "https://in-toto.io/Statement/v0.1",
"predicateType": "gitsign.sigstore.dev/predicate/git/v0.1",
"subject": [{
"name": "[email protected]:chainguard-dev/chainguard-weaveworks-gitops-demo.git",
"digest": {
"sha1": "2554b88e259b787db742abcaede8c4ccd05bd5ae"
}
}],
"predicate": {
"source": {
"tree": "d7fa76b38aa4f5d315632ee9524d758c2d117844",
"parents": [
"8912f18bbf775ea516ab7586eba03230bbc31ca7"
],
"author": {
"name": "James Strong",
"email": "[email protected]",
"date": "2023-05-04T15:18:56-04:00"
},
"committer": {
"name": "James Strong",
"email": "[email protected]",
"date": "2023-05-04T15:18:56-04:00"
},
"message": "add build and scans in makefile\n\nSigned-off-by: James Strong \u003c[email protected]\u003e\n"
},
"signature": "-----BEGIN SIGNED MESSAGE-----\nMIIENQYJKoZIhvcNAQcCoIIEJjCCBCICAQExDTALBglghkgBZQMEAgEwCwYJKoZI\nhvcNAQcBoIIC1zCCAtMwggJaoAMCAQICFGVErAp5dRhDhOFvXmLVOVYwDH5aMAoG\nCCqGSM49BAMDMDcxFTATBgNVBAoTDHNpZ3N0b3JlLmRldjEeMBwGA1UEAxMVc2ln\nc3RvcmUtaW50ZXJtZWRpYXRlMB4XDTIzMDUwNDE5MTkwMVoXDTIzM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lnNwKiSl643jyt/4eKcoAvKe6OAAAB\nh+g0G70AAAQDAEcwRQIgCeAxE00kDBsCoNATFzeTwPcmBf0rkrpFu0sdkPLnCLkC\nIQDkbRh31L553r9Qtu3jrUVKTFlipge+B/jneoi3TnI+TDAKBggqhkjOPQQDAwNn\nADBkAjBFO9oZCRpXCSUN7boL9OOBt011CdLFiQypnjXHI4tsljzINcvFJw2sOl2V\nI1hD3aICMHHMs0zT1r19MDdyUT1bwzbaIBHt3PR4xsgs4Fjgsxyyk/Qu/qq6jAaC\nE2jzVm5lCw==\n-----END CERTIFICATE-----\n"
}]
}
}
Chainguard Enforce for git
[How to install Chainguard Enforce for Git](https://edu.chainguard.dev/chainguard/chainguard-enforce/chainguard-enforce-github/install-enforce-github/