Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying function with secrets #135

Open
jkklapp opened this issue May 26, 2022 · 1 comment
Open

Deploying function with secrets #135

jkklapp opened this issue May 26, 2022 · 1 comment

Comments

@jkklapp
Copy link

jkklapp commented May 26, 2022

Hi, I have set secrets successfully in firebase using

firebase functions.secrets.set SECRET

command. I access the secrets successfully using runWith when instantiating the function. The deployment of functions work locally but in the workflows it complains accessing to

...
private_key: process.env.SECRET.replace(...)
...

is undefined. I suspect I might not be using this action correctly, and I haven't found issues in this repo specific to secrets.

Link to the failing action

https://github.com/jkklapp/wsne/runs/6608094126?check_suite_focus=true

@Psycarlo
Copy link

Check on Google Cloud Secret Manager if the secret is there.
Make sure you use the same project id where the secret is.
Don't forget runWith and the secret name must match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants