跳到主要内容
ArcBlock Community

Access Denied When Using a Public Repository in Remote Git Repo

Marlong
开发者
aignefeature

image.png

Hello Team, I am experiencing an issue when trying to add a public Git repository to the Remote Git Repo feature. Even though the repository I am using is public (https://github.com/YangModels/yang.git), the system still requests an access token and displays the error message: "No operation permission, please check the access token."

Steps to reproduce:

  1. Enter the public repository URL in the provided field.
  2. Leave the Access Token field empty (since public repositories do not require authentication).
  3. Click the Save button.
  4. Receive the error message: "No operation permission, please check the access token."

Please check if there is an issue with the system regarding public repository access. Thank you!

6 条回复

Yechao Li19个月前

在 Project 中设置 Git repository 时,如果来自 github 的 repo 则需要提供 Access Token,否则无法写入数据。

这里需要你用自己的 github 账户创建一个 Repo 并且根据 “github access token” 中的提示从 Github 获取 Access Token。

Marlong19个月前

is the access token requirement for public repositories an intentional system design, or can a feature be added to allow public repositories without an access token?

Yechao Li19个月前

在自己 launch AIGNE 之后,你可以:

  • 从一个公共仓库(无需 Access Token 即可读取内容的仓库)导入一个 AIGNE Project 到 AIGNE 中
  • 把一个 AIGNE Project 同步到一个公共仓库(如果该仓库支持无 Access Token 写入的话)或者一个私有仓库(配置了 Access Token)

以下场景是不支持的:

  • 不支持在没有 Access Token 的情况下把一个 AIGNE Project 同步到一个 Github 仓库,因为 Github 仓库不支持这种行为
Marlong19个月前

thank you for the clarification. I understand that GitHub does not support writing without an Access Token. However, is there a possibility for AIGNE to provide a feature that allows users to sync projects to public repositories more easily, perhaps through an alternative authentication mechanism?

Yechao Li19个月前

是的,我们会计划优化 GitHub 同步的使用体验,感谢您的反馈

Marlong19个月前

Thank you for your response! Glad to hear that AIGNE plans to improve the GitHub synchronization experience. I'm looking forward to the updates

回复