简体   繁体   English

远程:未找到存储库。 GitHub 动作

[英]remote: Repository not found. GitHub Action

I am currently developing pipelines using GitHub action and in this process I am trying to push code from the template branch of repos A to the dev branch of repos B using a GitHub Action workflow.我目前正在使用 GitHub 操作开发管道,在此过程中,我尝试使用 GitHub 操作工作流将代码从存储库 A 的模板分支推送到存储库 B 的开发分支。

For this, I used the following code:为此,我使用了以下代码:

          git config user.email "${{ github.event.inputs.email }}"
          git config user.name "${{ github.event.inputs.user }}"
          git remote -v
          git remote add origin2 https://${{ github.event.inputs.TOKEN }}@github.com/${{ github.event.inputs.org }}/${{ github.event.inputs.repos }}.git
          git remote -v
          git pull
          git checkout template
          git push -f origin2 template:${{ env.dev }}   

As you can see I fully parameterize the code to make it dynamic.如您所见,我将代码完全参数化以使其动态化。

The problem is that once this code is executed, the GitHub Action console gives me the following error:问题是,一旦执行此代码,GitHub Action 控制台就会出现以下错误:

在此处输入图像描述

The snowflakeTestRepos repository does however exist in the samyKheznadji organization.然而, snowflakeTestRepos存储库确实存在于samyKheznadji组织中。

I don't understand why it doesn't work knowing that when I run it locally it works.我不明白为什么它不工作知道当我在本地运行它时它工作。

Thanks for your help:)谢谢你的帮助:)

I tried to create the remote origin2 with a Personal Access Token with full access.我尝试使用具有完全访问权限的个人访问令牌创建远程 origin2。 The repository is private.存储库是私有的。

I am sure your token is invalid.我确定您的令牌无效。

There are the posibilities:有以下几种可能:

  • You don't sent token你没有发送令牌
  • You sent token but in invalid name您发送了令牌但名称无效
  • You sent invalid/expired token您发送了无效/过期的令牌

暂无
暂无

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

相关问题 远程:未找到存储库。 在我自己的 github 上 - remote: Repository not found. on my own github Github 组织“远程:未找到存储库。” 通过 Https 克隆 - Github Organization "remote: Repository not found." via Https Clone 找不到 Github 存储库。 未找到致命错误远程存储库,据称切换帐户后 - Github repository not found. fatal error remote repository not found, after supposedly swtiching accounts 远程:未找到存储库。 致命:存储库 - remote: Repository not found. fatal: repository Github 远程:未找到存储库。 致命:在 Pycharm 中找不到存储库“https://github.com/org/repo.git/” - Github remote: Repository not found. fatal: repository 'https://github.com/org/repo.git/' not found in Pycharm GitHub:错误:未找到存储库。致命:远程端意外挂断(显然不同于类似的帖子) - GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently) GitHub错误:找不到存储库。 致命:远端意外挂断 - GitHub ERROR: Repository not found. fatal: The remote end hung up unexpectedly 远程:找不到存储库。 致命:找不到存储库“ repo_name” - remote: Repository not found. fatal: repository 'repo_name not found Github 复制存储库:修复远程:未找到存储库 - Github Duplicating a repository: fixing remote: Repository not found 错误:找不到存储库。 致命:无法从远程存储库读取 - Error: Repository not found. fatal: Could not read from remote repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM