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

Add v0.2 bundle tests #112

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
id: sigstore-conformance
with:
entrypoint: ${{ github.workspace }}/sigstore-python-conformance
xfail: "test_verify_with_trust_root"
xfail: "test_verify_with_trust_root test_verify_dsse_bundle_with_trust_root"
1 change: 1 addition & 0 deletions test/assets/d.stmt.cert-expired.sigstore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"mediaType":"application/vnd.dev.sigstore.bundle+json;version=0.2","verificationMaterial":{"x509CertificateChain":{"certificates":[{"rawBytes":"MIIC+zCCAqCgAwIBAgIEERggBDAKBggqhkjOPQQDAzArMREwDwYDVQQDEwhzaWdzdG9yZTEWMBQGA1UEChMNc2lnc3RvcmUubW9jazAeFw0zMDAxMDEwMDAwMDBaFw0zMDAxMDEwMDEwMDBaMAAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARhI6OaXxvRqqPVhwHwTD1n56ngJ4qhuuI+Q8qH6e1K90kDyIwZj3kWHkwUxBddaHkoWZP6bYkUrqRoRE2p4iBYo4IB2zCCAdcwDgYDVR0PAQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMIGlBgNVHREBAf8EgZowgZeGgZRodHRwczovL2dpdGh1Yi5jb20vc2lnc3RvcmUtY29uZm9ybWFuY2UvZXh0cmVtZWx5LWRhbmdlcm91cy1wdWJsaWMtb2lkYy1iZWFjb24vLmdpdGh1Yi93b3JrZmxvd3MvZXh0cmVtZWx5LWRhbmdlcm91cy1vaWRjLWJlYWNvbi55bWxAcmVmcy9oZWFkcy9tYWluMB0GA1UdDgQWBBSffLUNo0oDhFqCkeSP5DqqnstPsjAfBgNVHSMEGDAWgBQ/FFxk7FUxt/oE8lDZEF0s7kasuDA7BgorBgEEAYO/MAEIBC0MK2h0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20wgYoGCisGAQQB1nkCBAIEfAR6AHgAdgD3JsqjQRe6kWVErzc06SDNTEku91zmIo/cBO7/Lz8n3QAAAYYKRewAAAAEAwBHMEUCIHQFz28n3pVooYV459x0HzuTBHKrL1hKm2mmRv4hs3nbAiEAtN/tQGeROcAf9YHkHqDDe1l183GhkQ++i0lMRedAXfMwCgYIKoZIzj0EAwMDSQAwRgIhAIHhd2TfNlGKQ3/vlybt4+P+9mT7ohwFluEz4cps28fwAiEAv2tR3jwF4i4IB9LTmDNVn2l1xss6mGWYiZPw36eUjWc="}]},"tlogEntries":[{"logIndex":"5252969","logId":{"keyId":"9ybKo0EXupFlRK83NOkgzUxJLvdc5iKP3ATu/y8/J90="},"kindVersion":{"kind":"intoto","version":"0.0.2"},"integratedTime":"1675209600","inclusionPromise":{"signedEntryTimestamp":"MEQCIFpMwnPgnsW/QRryVJpasBFXuU6KkDyCohxyW9vn1md2AiBOHwaxdSlis0jUI+ZXkrt9fPbTCBxym+cPj/pM9HkSDw=="},"inclusionProof":{"logIndex":"0","rootHash":"h7LdGPr3Dc+bDUmh1zyrVBlVOK525Cv412nUseBLAHQ=","treeSize":"1","hashes":[],"checkpoint":{"envelope":"localhost:8000 - 215824313067845\n1\nh7LdGPr3Dc+bDUmh1zyrVBlVOK525Cv412nUseBLAHQ=\nTimestamp: 1675209600000000000\n\n— localhost:8000 9ybKozBFAiBEQ+m19l5dwHrvollpqYFzomUTeAzzG2Hpu0D9TRWzeQIhAKMHccf4AQDHq0crkVZe1NAkfKXQbRYMvgrQt2gKY1k1\n"}},"can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ICAgICAgICJnaXRodWIiOiB7CiAgICAgICAgICAiZXZlbnRfbmFtZSI6ICJwdXNoIiwKICAgICAgICAgICJyZXBvc2l0b3J5X2lkIjogIjQ5NTU3NDU1NSIsCiAgICAgICAgICAicmVwb3NpdG9yeV9vd25lcl9pZCI6ICI3MTA5NjM1MyIKICAgICAgICB9CiAgICAgIH0sCiAgICAgICJyZXNvbHZlZERlcGVuZGVuY2llcyI6IFsKICAgICAgICB7CiAgICAgICAgICAidXJpIjogImdpdCtodHRwczovL2dpdGh1Yi5jb20vc2lnc3RvcmUvc2lnc3RvcmUtanNAcmVmcy9oZWFkcy9tYWluIiwKICAgICAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgICAgICJnaXRDb21taXQiOiAiMjZkMTY1MTMzODZmZmFhNzkwYjFjMzJmOTI3NTQ0ZjEzMjJlNDE5NCIKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIF0KICAgIH0sCiAgICAicnVuRGV0YWlscyI6IHsKICAgICAgImJ1aWxkZXIiOiB7CiAgICAgICAgImlkIjogImh0dHBzOi8vZ2l0aHViLmNvbS9hY3Rpb25zL3J1bm5lci9naXRodWItaG9zdGVkIgogICAgICB9LAogICAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgImludm9jYXRpb25JZCI6ICJodHRwczovL2dpdGh1Yi5jb20vc2lnc3RvcmUvc2lnc3RvcmUtanMvYWN0aW9ucy9ydW5zLzYwMTQ0ODg2NjYvYXR0ZW1wdHMvMSIKICAgICAgfQogICAgfQogIH0KfQo=","payloadType":"application/vnd.in-toto+json","signatures":[{"sig":"MEYCIQCXjDUkiw8cz6fL2GJjiWQ/3X8wam8LBqwFDZ/BMi5tEgIhAJoIsvvq7bsfIeCC8D1ZPw2PwTh6oLAJJUE1JpXV/dvE","keyid":""}]}}
Loading
Loading