Cloud Container Builder - gcloud app deploy 因缺少权限而失败

Cloud Container Builder - gcloud app deploy fails with missing permission

我正在尝试使用 Google Cloud Builder 为应用引擎应用程序(标准环境)设置持续部署。我有以下 cloudbuild.yaml 设置:

steps:
- name: gcr.io/cloud-builders/gcloud
  args: ['app', 'deploy', 'frontend/app.yaml']

据我了解,cloud builder uses the service account [PROJECT-ID]@cloudbuild.gserviceaccount.com,因此我在主控室的 IAM 部分添加了角色 App Engine Admin。尽管如此,它仍然失败并出现错误:

ERROR: (gcloud.app.deploy) You do not have permission to access app [...] (or it may not exist): Request had insufficient authentication scopes.

知道我错过了什么吗?

谢谢!

目前,Container Builder 服务不会为您的构建提供执行 App Engine 部署所需的范围。我们正在解决这个问题,希望尽快解决。

同时,您可以关注https://github.com/GoogleCloudPlatform/cloud-builders/issues/36获取更新。