Skip to content

Commit

Permalink
Base64 decode that permits padding (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadams authored and Liron Levin committed Mar 9, 2019
1 parent 212a779 commit 4291dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/gcp/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// Discover discovers all GCR assets
func Discover(serviceAccount string, emitFn func(result shared.CloudDiscoveryResult)) {
sa, err := base64.RawStdEncoding.DecodeString(serviceAccount)
sa, err := base64.StdEncoding.DecodeString(serviceAccount)
if err != nil {
log.Errorf(err.Error())
return
Expand Down

0 comments on commit 4291dbb

Please sign in to comment.