mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-16 21:46:40 +00:00
rename to resource URI
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
@@ -197,7 +197,7 @@ func verifyVSACmd() *cobra.Command {
|
||||
SubjectDigests: &o.SubjectDigests,
|
||||
AttestationsPath: &o.AttestationsPath,
|
||||
VerifierID: &o.VerifierID,
|
||||
ResourceUri: &o.ResourceUri,
|
||||
ResourceURI: &o.ResourceURI,
|
||||
VerifiedLevels: &o.VerifiedLevels,
|
||||
PrintAttestation: &o.PrintAttestation,
|
||||
PublicKeyPath: &o.PublicKeyPath,
|
||||
|
||||
@@ -132,7 +132,7 @@ type VerifyVSAOptions struct {
|
||||
SubjectDigests []string
|
||||
AttestationsPath string
|
||||
VerifierID string
|
||||
ResourceUri string
|
||||
ResourceURI string
|
||||
VerifiedLevels []string
|
||||
PublicKeyPath string
|
||||
PublicKeyID string
|
||||
@@ -153,7 +153,7 @@ func (o *VerifyVSAOptions) AddFlags(cmd *cobra.Command) {
|
||||
cmd.Flags().StringVar(&o.VerifierID, "verifier-id", "",
|
||||
"the unique verifier ID who created the attestations")
|
||||
|
||||
cmd.Flags().StringVar(&o.ResourceUri, "resource-uri", "",
|
||||
cmd.Flags().StringVar(&o.ResourceURI, "resource-uri", "",
|
||||
"the resource URI to be verified")
|
||||
|
||||
cmd.Flags().StringSliceVar(&o.VerifiedLevels, "verified-levels", []string{},
|
||||
|
||||
@@ -33,7 +33,7 @@ type VerifyVSACommand struct {
|
||||
SubjectDigests *[]string
|
||||
AttestationsPath *string
|
||||
VerifierID *string
|
||||
ResourceUri *string
|
||||
ResourceURI *string
|
||||
VerifiedLevels *[]string
|
||||
PrintAttestation *bool
|
||||
PublicKeyPath *string
|
||||
@@ -58,7 +58,7 @@ func (c *VerifyVSACommand) Exec(ctx context.Context) (*utils.TrustedAttesterID,
|
||||
vsaOpts := &options.VSAOpts{
|
||||
ExpectedDigests: *c.SubjectDigests,
|
||||
ExpectedVerifierID: *c.VerifierID,
|
||||
ExpectedResourceURI: *c.ResourceUri,
|
||||
ExpectedResourceURI: *c.ResourceURI,
|
||||
ExpectedVerifiedLevels: *c.VerifiedLevels,
|
||||
}
|
||||
pubKeyBytes, err := os.ReadFile(*c.PublicKeyPath)
|
||||
|
||||
Reference in New Issue
Block a user