Skip to content

Commit e1eefe8

Browse files
fix(secure-onboarding) Update the cloudauth pb.go files (#432)
* 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
1 parent 89329f7 commit e1eefe8

File tree

4 files changed

+298
-147
lines changed

4 files changed

+298
-147
lines changed

sysdig/internal/client/v2/cloudauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (client *Client) unmarshalProto(data io.ReadCloser) (*CloudauthAccountSecur
123123
return result, err
124124
}
125125

126-
err = protojson.Unmarshal(body, result)
126+
err = protojson.UnmarshalOptions{DiscardUnknown: true}.Unmarshal(body, result)
127127
return result, err
128128
}
129129

0 commit comments

Comments
 (0)