Hi,
I had a cloud function and it was running okay. After a while it stopped working suddenly. I suggested that I deleted a service account by mistake and it was a part of my project, it could be a reason for that. I used that deleted service account for build service account.
When I go cloud function > permissions >
Warning: You must assign the Invoker role (roles/run.invoker) through Cloud Run if you want to allow the function to receive requests from additional principals or other given authorities in IAM.
Note: if you want to achieve the equivalent of assigning the Cloud Functions "Admin" or "Developer" role to a Cloud Run function 1st gen, you need to assign Cloud Functions "Admin" or "Developer" to this function and assign "Cloud Run Invoker" to the Cloud Run service.