mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-15 13:06:57 +00:00
test: Add test data for v1.5.0 (#506)
* Add test data for v1.5.0 * Fix container tests --------- Signed-off-by: Ian Lewis <ianlewis@google.com>
This commit is contained in:
@@ -836,7 +836,7 @@ func Test_runVerifyGHAArtifactImage(t *testing.T) {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
// Validate against test's expected builderID, if provided.
|
||||
@@ -847,7 +847,7 @@ func Test_runVerifyGHAArtifactImage(t *testing.T) {
|
||||
}
|
||||
|
||||
if bid == nil {
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
// If we have a generated a user-provided bid, then validate it against the
|
||||
|
||||
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v13.0.30
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v13.0.30
vendored
Normal file
Binary file not shown.
1
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v13.0.30.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v13.0.30.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14
vendored
Normal file
Binary file not shown.
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14.2
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14.2
vendored
Normal file
Binary file not shown.
1
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14.2.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14.2.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
1
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-push-v14.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-workflow_dispatch
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_generic/v1.5.0/binary-linux-amd64-workflow_dispatch
vendored
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.manifest.v1+json",
|
||||
"schemaVersion": 2,
|
||||
"config": {
|
||||
"mediaType": "application/vnd.oci.image.config.v1+json",
|
||||
"digest": "sha256:aca8395e8635807292812893b9f3bf44df3ad93c78c4e7f5499a309be0c096e1",
|
||||
"size": 167
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"mediaType": "application/vnd.in-toto+json",
|
||||
"digest": "sha256:c90ea216960d524d8404b99ba52136dfc8e34ae053a4cc9ceb4be61f06194923",
|
||||
"size": 10795,
|
||||
"annotations": {
|
||||
"in-toto.io/predicate-type": "https://slsa.dev/provenance/v0.2"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"architecture":"amd64","author":"Bazel","config":{"User":"0","Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"],"Entrypoint":["/app"],"WorkingDir":"/","Labels":{"org.opencontainers.image.created":"2023-02-28T00:39:44.321Z","org.opencontainers.image.description":"","org.opencontainers.image.licenses":"Apache-2.0","org.opencontainers.image.revision":"63d4b1ff9c0e93006cf1768314cf1d0675a33b88","org.opencontainers.image.source":"https://github.com/slsa-framework/example-package","org.opencontainers.image.title":"example-package","org.opencontainers.image.url":"https://github.com/slsa-framework/example-package","org.opencontainers.image.version":"main"},"OnBuild":null},"created":"2023-02-28T00:40:11.505882605Z","history":[{"created":"2023-02-22T17:10:33Z","created_by":"bazel build ...","author":"Bazel"},{"created":"2023-02-28T00:40:11.505882605Z","created_by":"COPY /app/app /app # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-02-28T00:40:11.505882605Z","created_by":"ENTRYPOINT [\"/app\"]","comment":"buildkit.dockerfile.v0","empty_layer":true}],"moby.buildkit.buildinfo.v1":"eyJmcm9udGVuZCI6ImRvY2tlcmZpbGUudjAiLCJzb3VyY2VzIjpbeyJ0eXBlIjoiZG9ja2VyLWltYWdlIiwicmVmIjoiZG9ja2VyLmlvL2xpYnJhcnkvZ29sYW5nOjEuMTlAc2hhMjU2OjdjZTMxZDE1YTNhNGRiZjIwNDQ2Y2NjZmZhNDAyMGQzYTI5NzRhZDIyODdkOTYxMjNmNTVjYWYyMmM3YWRiNzEiLCJwaW4iOiJzaGEyNTY6N2NlMzFkMTVhM2E0ZGJmMjA0NDZjY2NmZmE0MDIwZDNhMjk3NGFkMjI4N2Q5NjEyM2Y1NWNhZjIyYzdhZGI3MSJ9LHsidHlwZSI6ImRvY2tlci1pbWFnZSIsInJlZiI6Imdjci5pby9kaXN0cm9sZXNzL3N0YXRpY0BzaGEyNTY6M2M1NzY3ODgzYmMzYWQ2YzRhZDdjYWY5N2YzMTNlNDgyZjUwMGYyYzIxNGY3OGU0NTJhYzFjYTkzMmUxYmY3ZiIsInBpbiI6InNoYTI1NjozYzU3Njc4ODNiYzNhZDZjNGFkN2NhZjk3ZjMxM2U0ODJmNTAwZjJjMjE0Zjc4ZTQ1MmFjMWNhOTMyZTFiZjdmIn0seyJ0eXBlIjoiZ2l0IiwicmVmIjoiaHR0cHM6Ly9naXRodWIuY29tL3Nsc2EtZnJhbWV3b3JrL2V4YW1wbGUtcGFja2FnZS5naXQjNjNkNGIxZmY5YzBlOTMwMDZjZjE3NjgzMTRjZjFkMDY3NWEzM2I4OCIsInBpbiI6IjYzZDRiMWZmOWMwZTkzMDA2Y2YxNzY4MzE0Y2YxZDA2NzVhMzNiODgifV19","os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:28e757e6e258ecd21398f28a75355fdf53d5b297bd47487cc67db4dcbe91101c","sha256:67ce39b2a1b2dabeba60c354613ca8da73d82ba17ff0b8c7a93ad95bd0e5ee59"]}}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.index.v1+json",
|
||||
"schemaVersion": 2,
|
||||
"manifests": [
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.manifest.v1+json",
|
||||
"digest": "sha256:8bec22ea0ee9a93ae5077383e78ba983dac9d4bcb0847b4ef0cdcd593bae5683",
|
||||
"size": 671,
|
||||
"platform": {
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
}
|
||||
},
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.manifest.v1+json",
|
||||
"digest": "sha256:1165c5cc617e7c7eb2270d2445909e5457f8854b7653692d8c3925d60d7470a7",
|
||||
"size": 567,
|
||||
"annotations": {
|
||||
"vnd.docker.reference.digest": "sha256:8bec22ea0ee9a93ae5077383e78ba983dac9d4bcb0847b4ef0cdcd593bae5683",
|
||||
"vnd.docker.reference.type": "attestation-manifest"
|
||||
},
|
||||
"platform": {
|
||||
"architecture": "unknown",
|
||||
"os": "unknown"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.manifest.v1+json",
|
||||
"schemaVersion": 2,
|
||||
"config": {
|
||||
"mediaType": "application/vnd.oci.image.config.v1+json",
|
||||
"digest": "sha256:5bf169b08c29cf89ead189b956461dd5976790afdb1ce358ccfba7aff03cce08",
|
||||
"size": 2221
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
|
||||
"digest": "sha256:383e1c5dd0c1830143b1230e90292ebd4219911e0512b70d250c8907c4899110",
|
||||
"size": 820995
|
||||
},
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
|
||||
"digest": "sha256:32210b75c0869164a40e0db119f8c70632ff70bbcea0155a59ca49aa488f09f4",
|
||||
"size": 624102
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"architecture":"unknown","os":"unknown","config":{},"rootfs":{"type":"layers","diff_ids":["sha256:c90ea216960d524d8404b99ba52136dfc8e34ae053a4cc9ceb4be61f06194923"]}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"architecture":"","created":"2023-02-28T00:42:06.276934379Z","history":[{"created":"0001-01-01T00:00:00Z"}],"os":"","rootfs":{"type":"layers","diff_ids":["sha256:9415121fcda10d24ab9738a79ea75192c589400a5063a0181a5b5d6d674248c3"]},"config":{}}
|
||||
File diff suppressed because one or more lines are too long
21
cli/slsa-verifier/testdata/gha_generic_container/v1.5.0/container_workflow_dispatch/index.json
vendored
Executable file
21
cli/slsa-verifier/testdata/gha_generic_container/v1.5.0/container_workflow_dispatch/index.json
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"schemaVersion": 2,
|
||||
"manifests": [
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.index.v1+json",
|
||||
"size": 855,
|
||||
"digest": "sha256:6091ab417517982aa341b64ca57bf9e15e2ffe0428b0b0931508458aeaf43b88",
|
||||
"annotations": {
|
||||
"kind": "dev.cosignproject.cosign/imageIndex"
|
||||
}
|
||||
},
|
||||
{
|
||||
"mediaType": "application/vnd.oci.image.manifest.v1+json",
|
||||
"size": 6891,
|
||||
"digest": "sha256:bf81f59802e8d4757248b2079c34b4ebc20addd6416c912cfd7229bc5fc2676f",
|
||||
"annotations": {
|
||||
"kind": "dev.cosignproject.cosign/atts"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
3
cli/slsa-verifier/testdata/gha_generic_container/v1.5.0/container_workflow_dispatch/oci-layout
vendored
Executable file
3
cli/slsa-verifier/testdata/gha_generic_container/v1.5.0/container_workflow_dispatch/oci-layout
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"imageLayoutVersion": "1.0.0"
|
||||
}
|
||||
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v13.0.30
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v13.0.30
vendored
Normal file
Binary file not shown.
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v13.0.30.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v13.0.30.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14
vendored
Normal file
Binary file not shown.
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14.2
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14.2
vendored
Normal file
Binary file not shown.
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14.2.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14.2.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-push-v14.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-workflow_dispatch
vendored
Normal file
BIN
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-workflow_dispatch
vendored
Normal file
Binary file not shown.
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-workflow_dispatch.intoto.jsonl
vendored
Normal file
1
cli/slsa-verifier/testdata/gha_go/v1.5.0/binary-linux-amd64-workflow_dispatch.intoto.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user