-
Notifications
You must be signed in to change notification settings - Fork 200
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
Error: Failed to get Firebase project <project_name>. Please make sure the project exists and your account has permission to access it #192
Comments
For me it fails with |
Same |
Facing the same issue, the service account has all the necessary permission but still i am getting this error, but |
Same. I'm wondering if the credentials secret should be the whole JSON from the service account or maybe just the key. |
Hi there, I've come across the issue you're facing and found a solution that worked for me. The problem seems to be related to authentication with Google Cloud Platform (GCP) credentials when deploying to Firebase using GitHub Actions. Here's how I resolved it:
# Deploying the functions to firebase
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only functions --token ${{ secrets.GCP_SA_KEY }}
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_BASE64 }}
I hope this solution works for you as well. Good luck! |
Not sure if anyone still has this problem, but using personal token with GitHub Actions didn't seem very secure, and the actual issue was with permissions for the service account. I got it fixed by granting access to "run as" the App Engine default Service Account"( These roles and permissions did the trick for me: Just putting it out there in case someone else runs into the same hurdle. |
I am trying to deploy flutter app to Firebase. Deployment works fine from my local machine.
But on GHA I get error
Error: Failed to get Firebase project <project_name>. Please make sure the project exists and your account has permission to access it
My GCP sv_account has permissions -
Firebase Hosting Admin
&Service Account User
.The text was updated successfully, but these errors were encountered: