FirebaseExtended / action-hosting-deploy

Automatically deploy shareable previews for your Firebase Hosting sites
https://firebase.google.com/docs/hosting/github-integration
Apache License 2.0
691 stars 201 forks source link

[BUG] API key missing or invalid #193

Open sanealytics opened 2 years ago

sanealytics commented 2 years ago

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.

Hallerf commented 2 years ago
  - 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
sanealytics commented 2 years ago

Not sure I follow

mrk-han commented 1 year ago

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