Closed maylorsan closed 8 months ago
I managed to resolve the build failure issue by assigning the Firebase Admin role to the service account associated with the GCP_SA_KEY
. This change ensured that the service account had the necessary permissions for deploying functions and Firestore indexes through the GitHub Actions workflow.
@w9jds maybe need to add into README, something like this:
"When using .runtimeconfig.json
for environment variables, ensure the service account has the Firebase Admin role assigned for proper access."
Environment
Issue Description
I am encountering a build failure with an unspecified error when I try to use
GCP_SA_KEY
for authentication in my GitHub Actions workflow, specifically when deploying to Firebase Functions and Firestore indexes. The workflow succeeds without any issues when I useFIREBASE_TOKEN
for authentication, indicating the problem is specifically related to using a service account key (GCP_SA_KEY
).Workflow Snippet
Expected Behavior
The deployment should proceed without errors, similar to when using FIREBASE_TOKEN for authentication.
Actual Behavior
The build process fails during the functions deployment phase with the following output:
Troubleshooting Attempts