action-hosting-deploy icon indicating copy to clipboard operation
action-hosting-deploy copied to clipboard

[BUG] API key missing or invalid

Open sanealytics opened this issue 3 years ago • 4 comments

Action config

      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: "${{ secrets.GITHUB_TOKEN }}"
          firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_MYPROJ_DEV }}"
          expires: 20d
          projectId: myproj

I could not using firebase init hosting:github. Possibly because its a private repo. I have the repository secret for the specific action, as per this.

I also added a Debug step to echo it to be sure. It is the JSON that I had created for the service account.

However, the deployed website tells me that the api key is invalid.

Error message

{code: 'auth/invalid-api-key', message: 'Your API key is invalid, please check you have copied it correctly.', a: null}

Expected behavior

Deployed site works.

Actual behavior

Does not load.

sanealytics avatar Feb 05 '22 04:02 sanealytics

  - uses: FirebaseExtended/action-hosting-deploy@v0
    with:
      repoToken: "${{ secrets.GITHUB_TOKEN }}"
      firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_LAWVITE_DEV }}"
      expires: 20d
      projectId: lawvite
  - uses: FirebaseExtended/action-hosting-deploy@v0
    with:
      repoToken: "${{ secrets.GITHUB_TOKEN }}"
      firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_LAWVITE_DEV }}"
      expires: 20d
      projectId: lawvite

Hallerf avatar Feb 09 '22 18:02 Hallerf

Not sure I follow

sanealytics avatar Feb 09 '22 20:02 sanealytics

@Hallerf Are you saying you got it to work by pasting the action twice?

mrk-han avatar Mar 28 '23 21:03 mrk-han