mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-16 13:36:33 +00:00
cleanup, more skeleton
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
@@ -33,12 +33,10 @@ func VerifyVSA(ctx context.Context,
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
fmt.Println(sigstoreStatement)
|
||||
vsa, err := vsa10.VSAFromStatement(sigstoreStatement)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
fmt.Println(vsa)
|
||||
|
||||
// verify the envelope. signature
|
||||
err = verifyEnvelopeSignature(ctx, &sigstoreEnvelope)
|
||||
@@ -48,6 +46,12 @@ func VerifyVSA(ctx context.Context,
|
||||
|
||||
// TODO:
|
||||
// verify the metadata
|
||||
err = matchExpectedValues(vsa, vsaOpts)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// print the attestation
|
||||
return nil, nil, nil
|
||||
}
|
||||
@@ -78,3 +82,8 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEeGa6ZCZn0q6WpaUwJrSk+PPYEsca
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func matchExpectedValues(vsa *vsa10.VSA, vsaOpts *options.VSAOpts) error {
|
||||
// TODO: implement this function
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user