Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Code Security with Pre-Commit Hooks #344

Merged
merged 2 commits into from
Apr 9, 2024

pre-commit implementation

748b6d6
Select commit
Loading
Failed to load commit list.
Merged

Enhance Code Security with Pre-Commit Hooks #344

pre-commit implementation
748b6d6
Select commit
Loading
Failed to load commit list.
Chainguard Enforce / Enforce - Commit Signing succeeded Apr 9, 2024 in 1s

Successfully verified commit signature.

CLAIM DESCRIPTION
Found Git signature
Validated Git signature
Validated Rekor entry
Allowed by policy

Details

Certificate

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 113948038712783875235036602240107722333833592660 (0x13f59b557c42a50a57795a3a077bf8b12086ff54)
    Signature Algorithm: ECDSA-SHA384
        Issuer: O=sigstore.dev,CN=sigstore-intermediate
        Validity
            Not Before: Apr 4 15:06:31 2024 UTC
            Not After : Apr 4 15:16:31 2024 UTC
        Subject:         Subject Public Key Info:
            Public Key Algorithm: ECDSA
                Public-Key: (256 bit)
                X:
                    51:18:49:3c:35:49:f7:c1:1f:98:03:9f:57:9e:33:
                    f5:24:78:0b:e7:1e:a4:13:cb:bf:91:26:d8:5d:26:
                    c9:a2
                Y:
                    66:28:da:6f:16:50:f1:a5:79:76:d4:32:23:c3:24:
                    e1:7d:c6:db:06:0b:53:40:66:b7:ef:f1:6a:a3:75:
                    1e:33
                Curve: P-256
        X509v3 extensions:
            X509v3 Key Usage: critical
                Digital Signature
            X509v3 Extended Key Usage:
                Code Signing
            X509v3 Subject Key Identifier:
                B3:41:39:67:3B:91:9F:E0:62:DB:51:D5:DF:29:55:47:81:49:9A:86
            X509v3 Authority Key Identifier:
                keyid:DF:D3:E9:CF:56:24:11:96:F9:A8:D8:E9:28:55:A2:C6:2E:18:64:3F
            X509v3 Subject Alternative Name: critical
                email:[email protected]
            oidcIssuer:
                https://github.com/login/oauth
            Unknown extension 1.3.6.1.4.1.57264.1.8
            Signed Certificate Timestamp:
                BHoAeAB2AN09MGrGxxEyYxkeHJlnNwKiSl643jyt/4eKcoAvKe6OAAABjqmlryMAAAQDAEcwRQIgCgSgOxYtdPFSikgBhLeWQ6l5dKovJeU46887m4vbGtICIQCQTvyTG5aQ6bTljZXr24e8GkaPiVuik5bicW4ASQCRTA==

    Signature Algorithm: ECDSA-SHA384
         30:64:02:30:7b:11:d8:8b:9b:12:47:e8:b5:a7:66:52:5b:eb:
         de:34:3f:7d:d6:94:64:f3:c2:05:05:a5:20:bf:e0:33:f9:86:
         7d:33:b8:24:cb:fe:49:4d:0a:d5:f6:a1:f3:2f:26:00:02:30:
         52:ba:92:6c:27:63:af:e6:d3:31:f6:14:91:6d:4a:66:f0:1d:
         90:f6:bd:07:82:87:68:21:56:f0:1e:91:de:74:2f:81:73:4f:
         78:4b:3a:a6:43:63:b2:e5:e2:3a:6a:66

Rekor Entry

{
  "body": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiaGFzaGVkcmVrb3JkIiwic3BlYyI6eyJkYXRhIjp7Imhhc2giOnsiYWxnb3JpdGhtIjoic2hhMjU2IiwidmFsdWUiOiIzZWZkNGM4MWQ1Mzc4ODczMTg0NDU2YzI0YmVhNjA3ZGFkNzlkMmEwOTFkYzg4MDM2NDZhZjVhOTMzMjc2ZmNmIn19LCJzaWduYXR1cmUiOnsiY29udGVudCI6Ik1FVUNJUURob3VlZXVKNWFnWXZJazVHb0l1RHBPZzV0cTFUQldkME1DSHJ5TE5pa1J3SWdTN0dLZFVDTzhISDZscWhLQXpzR1JYaXdmTGU0OENobVVZdkUvQ29uRTZzPSIsInB1YmxpY0tleSI6eyJjb250ZW50IjoiTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVTXdha05EUVd4dFowRjNTVUpCWjBsVlJTOVhZbFpZZUVOd1VYQllaVlp2TmtJemRq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HRDWjI5eVFtZEZSVUZrV2pVS1FXZFJRMEpJZDBWbFowSTBRVWhaUVROVU1IZGhjMkpJUlZSS2FrZFNOR050VjJNelFYRktTMWh5YW1WUVN6TXZhRFJ3ZVdkRE9IQTNielJCUVVGSFR3cHhZVmQyU1hkQlFVSkJUVUZTZWtKR1FXbEJTMEpMUVRkR2FURXdPRlpMUzFOQlIwVjBOVnBFY1Zoc01IRnBPR3cxVkdweWVucDFZbWs1YzJFd1owbG9Da0ZLUWs4dlNrMWliSEJFY0hSUFYwNXNaWFppYURkM1lWSnZLMHBYTmt0VWJIVktlR0puUWtwQlNrWk5UVUZ2UjBORGNVZFRUVFE1UWtGTlJFRXlZMEVLVFVkUlEwMUljMUl5U1hWaVJXdG1iM1JoWkcxVmJIWnlNMnBSTDJaa1lWVmFVRkJEUWxGWGJFbE1MMmROTDIxSFpsUlBORXBOZGl0VFZUQkxNV1poYUFvNGVUaHRRVUZKZDFWeWNWTmlRMlJxY2l0aVZFMW1XVlZyVnpGTFduWkJaR3RRWVRsQ05FdElZVU5HVnpoQ05sSXpibEYyWjFoT1VHVkZjelp3YTA1cUNuTjFXR2xQYlhCdENpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSyJ9fX19",
  "integratedTime": 1712243192,
  "logID": "c0d23d6ad406973f9559f3ba2d1ca01f84147d8ffc5b8445c224f98b9591801d",
  "logIndex": 83428373,
  "verification": {
    "inclusionProof": {
      "checkpoint": "rekor.sigstore.dev - 2605736670972794746\n80126080\neMzktnO6YJPn9lKSJTem6W+nYiOTdEiYKDh0tV2/BCM=\n\n— rekor.sigstore.dev wNI9ajBFAiEAzIHehuGbvfQNtAJwLjUXU45H+ijp2dwgq8IpS7VDSoACIB74jURIqaKO+qURzhKKaZ5994P1K1VYD4bMJRPNJL1B\n",
      "hashes": [
        "a4903363788a03978b52ea70cc86723a9d388e05f8612baa57f920155c6ddde5",
        "43ec578e8c4ba921623c7dc94e08bc7ee1a135609558c4c74b3b2eb8b0ff15a2",
        "9c4ecab171afb5487b6e538f76bf40a3f06e7adf15f2a57a078bb0b47117ed51",
        "457f2a97d7f4a75479b156efa79259fb245500653285d148adc89020a4cf8784",
        "44e23849fd1cf3a21129d189c9ee1e3da5986e71d4128b62ced777196fa5750c",
        "b6214754ba8b613318a5097a4b456cfb1a848a9e80be2378ea206c6259394f94",
        "e2ad42572ff948affd67b4abff6f1070b251425d832e3f371e8789234129e243",
        "679cfa5b977bce0b42eb10c77d40819121dfd27e7e14801f89abd61ea563e914",
        "1611e8e3c688933fea40342a2b84f5ef92661e0d8cd1081edd07a949170b66a5",
        "cb73d2f879600237cb8684661b7bfee300ba7270e1c8a85d2dfffd72ae1f3366",
        "c0d31100433b8c8af59407f2699303ae0fe31a8eec8f0f927ff1c377ebe293c5",
        "558e3f5f1e9425ead2d40444594721313e45aa2ad077897cc16f38d0e7d57138",
        "32613a591f7e0a09583af4af093921f2548ce1354ffdc5b6dbc397e4aa09b976",
        "2f227cf2538c367d0e3badf6f086c77ec0f5cf5165b7643d2c68b1e651c074b0",
        "b09df90b70810378869a98c0b3b3b6983415ce8be381ac60a17a9eb3aeadc341",
        "c46c9be288c7cee42b0814d009b92057284f33bec325a671ae8d45389d6a075e",
        "734a5de747866b48fb14ffbc481fe23c94476e96be6fabaa10043086d7d0f4de",
        "56e8a6999390096cb6b020b9a204d70829555e2d6893d813e490439f81ac9fc6",
        "c2dcc4daf4919e483332cdaee2a4412e2b6ff13b4d2e471327740d1b61ca533e",
        "82b7b437ea126db54c914f863b483db28335388cad05a4e91519fd56f1db2cce",
        "42a1f6b491b7c99a98bbeaf2bc015a9b210a92b0a432b006979cc8f795d28952",
        "f08eb1cffcc1c70482c572b623b0c680da59d4173b6bf4a8a1417e1b0dd05ecd",
        "7f804c526bb175c8bf350cb78f162d490c35557f427130ad840d48b24de5947d",
        "0c60918bcf6f554648566bcad8014e99e32a101ea7f91f7a65efaf8d601906fc",
        "f7c7a7ccc682fb1e6808cbc8650039cfcbeed9aa4330216f13ff77e4d7ee3f0f"
      ],
      "logIndex": 79264942,
      "rootHash": "78cce4b673ba6093e7f652922537a6e96fa7622393744898283874b55dbf0423",
      "treeSize": 80126080
    },
    "signedEntryTimestamp": "MEQCICgsVE+6kekSkYc7ow5goaBM4zZp9rJN7dqR+mqtvCKDAiBEbiCzlaFage3d0H+44vOLgBKQFj5498LgNXVq/tl1FA=="
  }
}