Skip to content

Commit

Permalink
fix(secure-onboarding) Update the cloudauth pb.go files (#432)
Browse files Browse the repository at this point in the history
* fix(secure-onboarding) Update the cloudauth pb.go files

Fix summary:
--------------
Update the cloudauth go files to support newly added providerAlias field.

* Adding DiscardUnknown to prevent against future fields addition
  • Loading branch information
ravinadhruve10 authored Oct 20, 2023
1 parent 89329f7 commit e1eefe8
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 147 deletions.
2 changes: 1 addition & 1 deletion sysdig/internal/client/v2/cloudauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (client *Client) unmarshalProto(data io.ReadCloser) (*CloudauthAccountSecur
return result, err
}

err = protojson.Unmarshal(body, result)
err = protojson.UnmarshalOptions{DiscardUnknown: true}.Unmarshal(body, result)
return result, err
}

Expand Down
Loading

0 comments on commit e1eefe8

Please sign in to comment.