Tips for resolving the GOOGLE_APPLICATION_CREDENTIALS issue when deploying Firebase hosting using GitHub CI/CD automation

I am currently working on a Vuejs project hosted on Firebase hosting with GitHub actions for CICD. I encountered the following error during deployment to Firebase.

Below is my build-and-deploy.yml code:

  - name: Deploy to firebase
  uses: w9jds/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88eee1faedeae9fbeda5e9ebfce1e7e7c8febaa6b9a6ba">[email protected]</a>
  with: 
    args: deploy 
  env: 
    FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

Is there a way to utilize GOOGLE_APPLICATION_CREDENTIALS instead of FIREBASE_TOKEN? https://i.stack.imgur.com/LxGoH.png

Answer №1

Instead of using FIREBASE_TOKEN, you should utilize the GCP_SA_KEY environment variable as suggested in the documentation. This requires:

A standard service account key (in JSON format) or a base64 encoded service account key with the necessary permissions for your deployment/update task.

I trust this information is helpful to you.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Vue combined with modules for namespace management

I seem to be facing a problem that I thought I had solved before by using namespaces, but unfortunately nothing seems to be working. Here's my module: const Algo1Module = { namespaced: true, state: { questions: { question1: "test&qu ...

Unable to perform a post request with devise token authentication

I am facing an issue with making a post request to my controller endpoint. Interestingly, I was able to successfully create a user and retrieve all users using devise_token_auth. Following their documentation, I can perform CRUD operations on a user. Howe ...

Minimize the amount of information retrieved and shown based on the timestamp

I am currently working on storing and retrieving the date of a user request. For creating the timestamp, I use this code: const date = firebase.firestore.FieldValue.serverTimestamp(); This is how I fetch and display the data: <tr class="tr-content" ...

Requesting Axios.get for the value of years on end

I'm grappling with obtaining a JSON file from the server. The endpoint requires a year parameter, which needs to be set as the current year number as its value (e.g., ?year=2019). Furthermore, I need to fetch data for the previous and upcoming years a ...

How to dynamically change the color of a button in a list in Vue.js when it is clicked

I am working on a dynamic list of buttons that are populated using an array of objects: <div class="form-inline" v-for="(genre, index) in genreArray" :key="index" > ...

A guide to importing a Vue component in a JavaScript file

I am looking to achieve a specific behavior in my project: depending on a condition stored in my database, I want to load a particular vue.component instead of another. For example, within a file named discover.js, there is the following code: Vue.compone ...

Steps for retrieving the selected text from a select element within a Vue component

Currently, I am utilizing Laravel 7 in conjunction with Vue.js 2. One of my current objectives is to capture the selected text when a user changes the chosen option. This snippet showcases my component structure: <template> <div class=" ...

Tips on how to display a Vue component on a new page with Vue.js router

My current challenge is getting my App to render on a new page instead of the same page. Despite trying render: h => h(App), it still renders on the same page. This is the Vue file (Risks.vue) where the router will be linked: <router-link to="/risk ...

What is the process for integrating MongoDB into Vue.js 2?

I've been trying to install mongodb through npm, but I keep encountering the error message "Cannot find module 'fs'." Here is a snippet of my code: <script> const MongoClient = require('mongodb').MongoClient; export defau ...

Applying scoped styling in Vue.js renders the SCSS ineffective

My SCSS code works perfectly on a simple page where I apply background-color. However, when I make the file scoped, the SCSS doesn't seem to have any effect. It's important for me to keep this component scoped so that the background-color doesn&a ...

Display a sub-component within the main application component

I have developed a dialog component (global) that displays modal dialogs with overlays, such as popup forms. Currently, the dialog is being rendered within the component where it is called, causing content overlap issues if there are elements with positio ...

Error: VueJS - The Vue object has not been declared

Embarking on a challenge, I have set out to create an application that pulls data from an API and showcases it in various components. As a newcomer to VueJS, I rely on VueResource for accessing the API and VueX for managing the state of my application. Aft ...

Laravel Sanctum - Access Denied post login

My current project is a small web app developed using Laravel 8 sanctum and Vue. I have set up everything on both my local environment and the production server using Docker, ensuring consistency. The application is running smoothly on a subdomain called s ...

What is the most effective method for organizing and handling uploaded files within my editing software?

I am currently developing a social blog that includes a JavaScript-based editor for users to create their own blogs. One of the main challenges I am facing is related to uploading files and its limitations. Currently, I am storing images uploaded by users ...

Unravel the mystery of decrypting tokens in Vue.js!

I received a token upon successful login, and now I need to decode or decrypt it in order to view the permissions information contained within. How can I achieve this? I attempted: // token is accessible var decoded = jwt_decode(token) console.log(' ...

Having trouble building a VueJS project that relies on webpack after deleting the node_modules folder

Recently, I encountered a problem with my web project and attempted to delete the node_modules folder. However, after reinstalling it from scratch, I'm unable to successfully build the project, whether for development or production. Running npm run de ...

The process of ensuring an element is ready for interaction in Selenium with Javascript

I am currently working on creating an automated test for a Single Page Application built with VueJs. When I click on the registration button, a form is loaded onto the page with various elements. However, since the elements are loaded dynamically, they are ...

No entries found in the Nuxt/content module's array

<template> <div> <input v-model="searchQuery" type="search" autocomplete="off" placeholder="Search Articles" /> <ul v-if="articles.length"> ...

Unable to locate template or render function for Vue Draggable Next component

Looking to incorporate Vue Draggable Next into a Vue 3 example page but encountering some challenges. I've attempted to follow the instructions in the repository. However, I ran into issues when importing the Vue Draggable Next component and had to re ...

What is the best way to update the v-model of an element that has been modified programmatically?

I am currently utilizing a JavaScript plugin for Checkbox functionality. This particular plugin creates a switch button that mirrors the state of the checkbox. When the switch button is toggled, it updates the checked value of the checkbox. <input t ...