Skip to content

Commit

Permalink
add publicKeyPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Oren committed May 9, 2023
1 parent 8158f7e commit e6914db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/service-accounts/create_sa_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (
userToken = ""
serviceAccountEmail = ""
projectID = ""
publicKeyPath = "public_key.pem"
)

func main() {
Expand All @@ -27,7 +28,7 @@ func main() {
})

// make sure to create an RSA key-pair
b, err := os.ReadFile("public_key.pem")
b, err := os.ReadFile(publicKeyPath)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit e6914db

Please sign in to comment.