Skip to content
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

Permissions instability #244

Open
ir-fuel opened this issue Jan 6, 2025 · 2 comments
Open

Permissions instability #244

ir-fuel opened this issue Jan 6, 2025 · 2 comments

Comments

@ir-fuel
Copy link

ir-fuel commented Jan 6, 2025

I have no idea if it's related to this action, but it's where the issue appears, so I will report it here. Please let me know if I need to report it elsewhere.

What basically happens is I trigger a Github Action to deploy my Firebase development, and I get an error during deployment:

Request to https://cloudscheduler.googleapis.com/v1/projects/*****-test/locations/europe-west1/jobs/firebase-schedule-pubsub-****-europe-west1?updateMask=name%2CtimeZone%2CpubsubTarget%2Cschedule%2CretryConfig.maxDoublings%2CretryConfig.retryCount%2CretryConfig.maxBackoffDuration%2CretryConfig.minBackoffDuration%2CretryConfig.maxRetryDuration had HTTP Error: 403, The principal (user or service account) lacks IAM permission "cloudscheduler.jobs.update" for the resource "projects/*****-test/locations/europe-west1/jobs/firebase-schedule-pubsub-****-europe-west1" (or the resource may not exist).

Request to https://cloudscheduler.googleapis.com/v1/projects/*****-test/locations/europe-west1/jobs/firebase-schedule-pubsub-****-europe-west1?updateMask=name%2CtimeZone%2CpubsubTarget%2Cschedule%2CretryConfig.maxDoublings%2CretryConfig.retryCount%2CretryConfig.maxBackoffDuration%2CretryConfig.minBackoffDuration%2CretryConfig.maxRetryDuration had HTTP Error: 403, The principal (user or service account) lacks IAM permission "cloudscheduler.jobs.update" for the resource "projects/*****-test/locations/europe-west1/jobs/firebase-schedule-pubsub-****-europe-west1" (or the resource may not exist).

Request to https://cloudscheduler.googleapis.com/v1/projects/*****-test/locations/europe-west1/jobs/firebase-schedule-pubsub-****-europe-west1?updateMask=name%2CtimeZone%2CpubsubTarget%2Cschedule%2CretryConfig.maxDoublings%2CretryConfig.retryCount%2CretryConfig.maxBackoffDuration%2CretryConfig.minBackoffDuration%2CretryConfig.maxRetryDuration had HTTP Error: 403, The principal (user or service account) lacks IAM permission "cloudscheduler.jobs.update" for the resource "projects/*****-test/locations/europe-west1/jobs/firebase-schedule-pubsub-****-europe-west1" (or the resource may not exist).

However simply running the Action a second time shows no issues and everything is deployed correctly.

I use w9jds/firebase-action@master in my deployment configuration file with the following args: deploy --project test --force

@w9jds
Copy link
Owner

w9jds commented Jan 7, 2025

This isn't related to the Action, it looks like you don't have the proper permissions setup in your GCP project. Look at the README it tells you that you need specific permissions setup, your error specifically tells you which ones you are missing.

@ir-fuel
Copy link
Author

ir-fuel commented Jan 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants