简体   繁体   English

Google Cloud Build 无法使用我的私有 GitHub 存储库进行身份验证

[英]Google Cloud Build loses ability to authenticate with my private GitHub repository

I'm having problems running my cloud build triggers reliably because of what appears to be a credentials timeout.由于似乎是凭据超时,我在可靠地运行云构建触发器时遇到了问题。

I have set up my Google Cloud devops project within Google Cloud Build and authenticated the triggers with my private GitHub repository.我已经在 Google Cloud Build 中设置了我的 Google Cloud devops 项目,并使用我的私有 GitHub 存储库对触发器进行了身份验证。 My private GitHub repository has the Cloud Build GitHub App integration.我的私有 GitHub 存储库具有 Cloud Build GitHub 应用程序集成。

My Cloud Build triggers work for a while, running fine whether run automatically or manually.我的 Cloud Build 触发器工作了一段时间,无论是自动运行还是手动运行都运行良好。

Then after a few hours I started to get errors in my trigger execution:几个小时后,我的触发器执行开始出现错误:

...
FETCHSOURCE
Initialized empty Git repository in /workspace/.git/
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com...

To try to resolve this I have used the Cloud Build triggers page to disconnect and then re-connect and re-authenticate with my private GitHub repository.为了尝试解决这个问题,我使用 Cloud Build 触发器页面断开连接,然后重新连接并使用我的私有 GitHub 存储库重新进行身份验证。 The repository management page shows a successful re-authentication, but I still get a "Invalid username or password" error when I run my triggers.存储库管理页面显示重新验证成功,但我在运行触发器时仍然收到“无效的用户名或密码”错误。

Is there something I'm missing about the way private repository authentication works?关于私有存储库身份验证的工作方式,我是否遗漏了什么? Is there another setting I'm missing that auto-refreshes Cloud Build authentication?是否还有另一个我缺少的自动刷新 Cloud Build 身份验证的设置?

This issue is the same to this public tracker issue:此问题与此公共跟踪器问题相同:

Unable to fetch repository from Github无法从 Github 获取存储库

Google Cloud Engineering Team is working on solving the issue.谷歌云工程团队正在努力解决这个问题。 You can star the public issue tracker feature requests and add comment in the thread that you are also affected to ensure that you will receive the updates about it.您可以为公共问题跟踪器功能请求加注星标,并在您也受到影响的线程中添加评论,以确保您将收到有关它的更新。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法通过 Terraform 使用 GCP Cloud Build 对 GitHub 存储库进行身份验证 - Cannot authenticate GitHub repository with GCP Cloud Build via Terraform 从 Google Cloud Build 访问私有 Maven 存储库? - Access to private Maven Repository from Google Cloud Build? Google Cloud Build 部署到 GKE 私有集群 - Google Cloud Build deploy to GKE Private Cluster 将 Google Cloud Build 连接到私有端点 - Connecting Google Cloud Build to Private Endpoints 将 github 存储库与谷歌云连接,同时推送和提交 - Connecting github repository with google cloud, push at the same time as well as commits Google Cloud Build 在使用 Github App 时不会忽略文件 - Google Cloud Build does not ignore file when using Github App 如何对 Google Cloud Build 进行身份验证以调用需要身份验证的 Cloud Run 服务? - How to authenticate a Google Cloud Build to invoke a Cloud Run service that requires authentication? 谷歌云,GitHub pipe 与谷歌云运行 - Google Cloud, GitHub pipe with Google Cloud Run Google Cloud Build for Python app triggered docker build fails to pull pip requirement from private artefact registry - Google Cloud Build for Python app triggered docker build fails to pull pip requirement from private artefact registry 我的构建配置为在项目存储库上设置存储库,build.gradle 构建文件添加了存储库“Google” - My build is configured to settings repositories over project repositories, repository ‘Google’ was added by build.gradle build file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM