Skip to content
This repository has been archived by the owner. It is now read-only.

[Help wanted] My secret is always invalid #13

Closed
kapik opened this issue Jun 14, 2019 · 2 comments

Comments

@kapik
Copy link

@kapik kapik commented Jun 14, 2019

Hi !

I need your help to understand why my secret is always invalid.
I have followed the Readme, the Github documentation for Secret and the Google documentation for GCloud Auth.
I know the flow for generate a JSON key file and I have already use this kind of key on anothers platforms for publish images (eg: Portainer and BuddyWorks).
But my secret seems to be invalid.
I have the following messages errors:

base64: invalid input

or (depends of my JSON key)

ERROR: (gcloud.auth.activate-service-account) Could not read json file /github/home/gcloud.json: No JSON object could be decoded

I have used the Github Secret feature (like your example).
Thanks for your help 🙏

@kapik kapik closed this Jun 16, 2019
@case

This comment has been minimized.

Copy link
Contributor

@case case commented Jul 15, 2019

@kapik were you able to resolve this somehow?

@case

This comment has been minimized.

Copy link
Contributor

@case case commented Jul 15, 2019

Fwiw, using the output of $ base64 {gcloud-credentials.json} as GCLOUD_AUTH worked, rather than using the json contents as the auth secret.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.