New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Permission 'cloudfunctions.functions.list' denied #203
Comments
Same here. Looks like |
To avoid having to wait for the problem to resolve itself, I had to add the permission to the github actions service account. |
yeah... this is still not working for me. And thanks for the note @teebu, but in my case even adding that permission to the github actions service account did not help. |
I'm having the same problem too |
Same problem here... Need to release urgently so waiting for a fix |
Same here. Waiting for a fix |
Still seems to be a problem 😔 @teebu How did you add the |
I couldn't wait for the fix, so I ended up adding the |
As mentioned above adding |
It worked for me as well 🎉 |
had the same issue gave the service account a bit of a higher perms of developer, thanks for the help 🎈!! |
Is it possible to get this fixed w/o permissions update? |
In cloud.google.com click 'IAM & Admin', then look for the principal with 'github-action', hit the pencil to edit, click 'add another role' and add 'cloud functions viewer'. BTW, make sure you're in the right project (i have multiple) |
Worked for me! Thanks @maxicano88 |
Worked for me too. Thanks @maxicano88 |
this thing only appear when using cloud function in hosting |
Yes, I have the same issue when try to deploy angular with server-side rendering function. |
You can follow this to get resolved |
This just cropped up for us as well, including |
Google's policy was changed? Yesterday, everything was good, but today I faced such issue. |
same situation, yesterday it was good but seeing this error now. I am using FirebaseExtended/action-hosting-deploy@v0 |
same situation, yesterday all good, today this error and also adding the Cloud Function Viewer role did not solve the issue |
I would try making sure you have the "Firebase Hosting Admin" role added as well. |
yes, the runner also has "Firebase Hosting Admin" role in my case. |
What is the exact error you are getting? Only about 'cloudfunctions.functions.list' denied? |
And are you using firebase-tools@11.14.0? |
I am sure that my google project has enabled cloud function api from day 1. and I double checked. (updated with full logs)
|
where could I check the version of it? |
I think if you have it installed via package.json it will be listed there, otherwise Github Actions would automatically install it for you and therefore it would probably install the latest version automatically. Which would be listed under "Run FirebaseExtended/action-hosting-deploy@v0" > "Deploying to Firebase preview channel". |
in our case, it is now working again after deleting one function that had failed to deploy a few Months ago (we were not using that function anyway) that was weird, since we did not do anything different from yesterday till now |
Same here. Adding Cloud Function Viewer role didn't solve the issue. |
The same Issue occurred again today. In my case, I solved the problem by granting the service account of github actions the permission to view the functions. |
What worked for us was adding Cloud Functions Viewer role to all the associated github service accounts and enabled the Cloud Functions API. |
@mustafaradheyy sorry for the late reply, Github Action didn't print firebase-tools version for me but I will try to lock the version by adding it to my package.json and see if I get different results from 11.13.0 and 11.14.0. |
After enabling cloud functions API, it worked |
Why hosting need functions permission. Please fix. |
In my case adding just a role didn't do anything. I had to open the link which was suggested in error message which redirected me to |
See my comment firebase/firebase-tools#5071 for workaround |
same issue on our side |
Same problem. Even recreating the Service Account with recteating the service keys didn't help (even fresh |
Same here. enabling cloudfunctions.googleapis.com in the project and adding roles/cloudfunctions.viewer to the service account works for me |
This worked for us as well. |
Since I didn't want to give the service account more permissions I tried pinning the version to So far the best workaround for me. |
I am unable to find principal with 'github-action', |
Action config
Error message
This has been working for years, and now we're starting noticing this error:
"HTTP Error: 403, Permission 'cloudfunctions.functions.list' denied on 'projects/<my-project>/locations/-/functions'"
Expected behavior
Deploy without needed permission.
Actual behavior
Fails to deploy.
The text was updated successfully, but these errors were encountered: