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

callFirestore task fails when running in the CI with message "PERMISSION_DENIED: Missing or insufficient permissions." #848

Open
ComradeAERGO opened this issue Mar 7, 2023 · 1 comment

Comments

@ComradeAERGO
Copy link

Thanks for setting up this great library.

Everything seems to work fine when running my tests locally on the Emulator.

However, when running in the CI (Github Action), even though I can successfully login my users,
my attempts to call cy.callFirestore throw the following error

cy.task('callFirestore') failed with the following error:

> 7 PERMISSION_DENIED: Missing or insufficient permissions.

I've set the SERVICE_ACCOUNT environment variable into my CI workflow

And since the login is correctly going through and authenticating in my environment's Firestore, I don't see what could be causing this.

@michaeldawson
Copy link
Contributor

What about your firestore rules?

This in your firestore.rules file would whitelist all requests (not suitable for production):

match /{document=**} {
  allow create, read, update, delete;
}

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