You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hosting:channel:deploy fails with 403 on serviceusage.services.get since v15.34.1 #11335
The preview channel deploys, like it does on 15.34.0 with the same service account.
[REQUIRED] Actual behavior
Request to https://serviceusage.googleapis.com/v1/projects/<project>/services/firebasehosting.googleapis.com had HTTP Error: 403, Permission denied to get service [firebasehosting.googleapis.com]
reason: AUTH_PERMISSION_DENIED, permission: serviceusage.services.get
It might be related to the 15.34.1 change "Ensured the Firebase Hosting API is enabled before deploying and running other Hosting commands", since our service account doesn't have serviceusage.services.get and the same setup works on 15.34.0.
In case it helps others: pinning to 15.34.0 or granting roles/serviceusage.serviceUsageConsumer to the service account gets deploys working again.
Reacted by Tanner Lyons, Petyo Mitkov, Lennox Stevenson, Thomas, Juraj Moško, Felix, Joe Mooring, Fareez Iqmal, Ben Taylor, Luka Stillingfleet and 2 more
Thanks for reporting this @anfernandezz and for sharing how you worked around the issue. I'm trying to reproduce this, however I haven't been able to replicate the error. After generating a service account via firebase init hosting:github and removing the Service Usage role from it, deployments to Hosting using that service account still go through and don't throw any permission errors.
I'm not sure what I'm missing here, but here's currently the permissions I have for my service account, please let me know in case this matches the permissions your service account has:
API Keys Viewer
Cloud Functions Developer
Cloud Run Viewer
Firebase Hosting Admin
I'll also ask someone from our engineering team to take a look as they may have an idea if #11296 is related.
I ran into this, with my project, IAM already had Service Usage Consumer role and it was still failing. Pinning to version 15.34.0 with this guide got a deployment to succeed though.
Apologies for the issue here folks, I’ll check this again with our engineering team. While we are investigating, please add the Service Usage Consumer(roles/serviceusage.serviceUsageConsumer) role to your service account, or downgrade to firebase-tools 15.34.0
# This file was auto-generated by the Firebase CLI# https://github.com/firebase/firebase-toolsname: Deploy to Firebase Hosting on mergeon:
push:
branches:
- mainjobs:
build_and_deploy:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0with:
firebaseToolsVersion: v15.34.0 # <- this partrepoToken: ${{ secrets.GITHUB_TOKEN }}firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_<PROJECT_ID> }}channelId: liveprojectId: <PROJECT_ID>
Reacted by André Baldeweg, Lennox Stevenson and Gianfranco M.
The 403 is a Firebase issue:
The deploy service account is missing the required Service Usage permission because Firebase CLI v15.34.1 started calling serviceusage.services.get and that call returned 403, which caused the deploy to fail.
The fix is to add the Service Usage Consumer (roles/serviceusage.serviceUsageConsumer) to the service:
Activity
fix(ci): pin firebase-tools to 15.34.0 for hosting deploys
fix(ci): pin firebase-tools to 15.34.0 for hosting deploys
배포 도구 버전 고정, 주소가 겹쳐 가려진 칼럼 4개 복구
aalej commentedon Oct 23, 2026
Thanks for reporting this @anfernandezz and for sharing how you worked around the issue. I'm trying to reproduce this, however I haven't been able to replicate the error. After generating a service account via
firebase init hosting:githuband removing theService Usage rolefrom it, deployments to Hosting using that service account still go through and don't throw any permission errors.I'm not sure what I'm missing here, but here's currently the permissions I have for my service account, please let me know in case this matches the permissions your service account has:
I'll also ask someone from our engineering team to take a look as they may have an idea if #11296 is related.
tannerlyons commentedon Oct 24, 2026
We ran into the same issue, same repro!
fix(ci): pin firebase-tools to 15.34.0 for hosting deploys
calebd-anderson commentedon Oct 25, 2026
I ran into this, with my project, IAM already had
Service Usage Consumerrole and it was still failing. Pinning to version 15.34.0 with this guide got a deployment to succeed though.content: Fix Firebase deployment guide
JaffaKetchup commentedon Oct 31, 2026
Our library stopped working due to this, the workaround of adding the Service Usage Consumer role worked for us.
Here's the log of the failed action if it's of use: https://github.com/fleaflet/flutter_map/actions/runs/41240920316/job/124654739435#step:7:163
aalej commentedon Nov 2, 2026
Apologies for the issue here folks, I’ll check this again with our engineering team. While we are investigating, please add the
Service Usage Consumer(roles/serviceusage.serviceUsageConsumer) role to your service account, or downgrade to firebase-tools 15.34.0ci: pin firebase-tools to 15.34.0 for hosting deploys
ci(github): fix firebase deploy 403 error by reverting to firebase-to…
remarkablemark commentedon Nov 3, 2026
I also got this error: https://github.com/lilboards/lilboards/actions/runs/39705689434/job/119585075382
Fixed it by pinning firebaseToolsVersion to v15.34.0
guinetn commentedon Nov 10, 2026
The 403 is a Firebase issue:
The deploy service account is missing the required Service Usage permission because Firebase CLI v15.34.1 started calling serviceusage.services.get and that call returned 403, which caused the deploy to fail.
The fix is to add the Service Usage Consumer (roles/serviceusage.serviceUsageConsumer) to the service:
So, no need to add "firebaseToolsVersion: v15.34.0"
fix(hosting): warn instead of failing when unable to ensure Hosting A…
content: Update Firebase deployment guide