-
Notifications
You must be signed in to change notification settings - Fork 950
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 Extensions with a Service Account on GH Actions and Locally fails #6060
Comments
Hi @abegehr, thanks for the detailed report. The issue regarding deploying extensions via GitHub actions seems to be similar to #5855. With regard to locally deploying, I consulted with our team, and they think that a call to
Please remove any PII (personal identifiable information) if needed. |
I think I'm experiencing the same issue. I'm attaching detailed logs. Details
My service account has the following roles:
It seems that firebaseextensions was updated in #2232, but I couldn't find the |
I got the same error using Google Cloud Build using Stripe extension: following extension instances will be configured: i extensions: By installing an extension instance onto a Firebase project, you accept the Firebase Extensions User Terms of Service: https://firebase.google.com/terms/extensions/user Error: HTTP Error: 403, Firebase Extensions Terms of Service Private API has not been used in project 835040529702 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=835040529702 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. |
After adding I'm attaching detailed logs. Details
|
@aalej, I have tried this again with the latest cli (12.4.3) and a service account that has the following roles:
Running this command: This time locally I got the same ToS issue as on GH actions:
No |
I've got the same issue, invoking via an Ubuntu worker on Cloud Build (using this config). Here's a log snippet:
LMK if there's any other info I can provide that may be of use. Thanks! |
@joehan is there a way I can accept the TOS via the console? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Thank you for the quick response, I deleted my comment, because I found a solution. The project uses firebase extensions, and they are supposed to deploy through a bitbucket-pipeline, so removing the property was not an option for me. Updating to [email protected] solved the problem for me. |
[REQUIRED] Environment info
firebase-tools:12.4.2
Platform:macOS
[REQUIRED] Test case
I'm trying to deploy Firebase extensions while authorized with a service account on a GH Action workflow and am getting the following error:
Trying to access https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=XXX (with my project id) gives an error: "Failed to load".
I'm not sure why it asks for accepting terms of service, as I accepted the terms while deploying locally with my Google account logged in.
I've also tried deploying extensions locally, which worked when Firebase CLI is logged in with my Google account (Firebase project owner) but fails with the service account with a different error:
How can I use a service account to deploy Firebase including extensions?
[REQUIRED] Steps to reproduce
On GH Actions:
Deploy a firebase project with extensions enabled on GH Actions with a service account:
Locally:
firebase logout
export GOOGLE_APPLICATION_CREDENTIALS='path/to/key.json'
firebase deploy --only extensions --project staging
[REQUIRED] Expected behavior
I would expect the service account to be able to deploy the whole Firebase project including extensions.
[REQUIRED] Actual behavior
Deploying with service account fails on GH action with:
and locally with:
The text was updated successfully, but these errors were encountered: