这是indexloc提供的服务,不要输入任何密码
Skip to content

Creation of Github Actions workflow fails due to max number of keys limit for service account #6145

@hugo2410

Description

@hugo2410

[REQUIRED] Environment info

11.25.2

11.25.2

Ubuntu 22.04

[REQUIRED] Test case

I had setup the github actions workflow succesfully in the past, I decided to remove it directly in git, without changing the config in firebase and when i try to set it up again it fails. I have removed the secrets for the repo and have deleted the service account called githubactions-*****

[REQUIRED] Steps to reproduce

firebase init hosting:github --debug

[REQUIRED] Expected behavior

Workflow succeeds and sets up github actions

[REQUIRED] Actual behavior

2023-07-18T16:53:55.604Z] >>> [apiv2][query] POST https://iam.googleapis.com/v1/projects/portatoapp/serviceAccounts/github-action-610901815@portatoapp.iam.gserviceaccount.com/keys [none]
[2023-07-18T16:53:55.605Z] >>> [apiv2][body] POST https://iam.googleapis.com/v1/projects/portatoapp/serviceAccounts/github-action-610901815@portatoapp.iam.gserviceaccount.com/keys {"keyAlgorithm":"KEY_ALG_UNSPECIFIED","privateKeyType":"TYPE_GOOGLE_CREDENTIALS_FILE"}
⠼ Retrieving a service account.[2023-07-18T16:53:56.419Z] <<< [apiv2][status] POST https://iam.googleapis.com/v1/projects/portatoapp/serviceAccounts/github-action-610901815@portatoapp.iam.gserviceaccount.com/keys 400
[2023-07-18T16:53:56.419Z] <<< [apiv2][body] POST https://iam.googleapis.com/v1/projects/portatoapp/serviceAccounts/github-action-610901815@portatoapp.iam.gserviceaccount.com/keys {"error":{"code":400,"message":"Precondition check failed.","status":"FAILED_PRECONDITION"}}

Error: HTTP Error: 400, Precondition check failed.
[2023-07-18T16:53:56.567Z] Error Context: {
"body": {
"error": {
"code": 400,
"message": "Precondition check failed.",
"status": "FAILED_PRECONDITION"
}
},
"response": {
"statusCode": 400
}
}
I didnt post the full logs as I'm worried there might be some secrets to access my repo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions