Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Aug 16, 2022
1 parent a731341 commit 1afb930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verifiers/internal/gcb/provenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ProvenanceFromBytes(payload []byte) (*GCBProvenance, error) {
var prov gloudProvenance
err := json.Unmarshal(payload, &prov)
if err != nil {
return nil, fmt.Errorf("json.Unmarshal: %w")
return nil, fmt.Errorf("json.Unmarshal: %w", err)
}

return &GCBProvenance{
Expand Down Expand Up @@ -253,7 +253,7 @@ func (self *GCBProvenance) VerifySignature() error {
// Assume a single provenance in the array.
prov := self.gcloudProv.ProvenanceSummary.Provenance[0]

// Verify the envelope type. It shoudl be an intoto type.
// Verify the envelope type. It should be an intoto type.
if prov.Envelope.PayloadType != intoto.PayloadType {
return fmt.Errorf("%w: expected payload type '%s', got %s",
serrors.ErrorInvalidDssePayload, intoto.PayloadType, prov.Envelope.PayloadType)
Expand Down

0 comments on commit 1afb930

Please sign in to comment.