1

我将 Satis 与 Gitlab 一起用于我的 Composer 存储库。这适用于开放项目。因此,如果没有第二个存储库行,它就可以工作。一旦我添加第二行,它就会不断要求提供凭据。auth 是来自组的部署用户名和密码。这在访问回购方面有效。这放在一起它不再工作了......

{
  "name": "vendor/packages",
  "homepage": "https://packages.vendor.com",
  "description": "All vendor packages",
  "repositories": [
        { "name": "vendor/my-open-package", "type": "vcs", "url": "https://gitlab.com/vendor/my-open-package.git" }
        { "name": "vendor/my-private-package", "type": "vcs", "url": "https://gitlab.com/vendor/my-private-package.git" }
  ],
  "config": {
    "http-basic": {
      "gitlab.com": {
        "username": "gitlab+deploy-token-.....",
        "password": "....."
      }
    }
  }
}

Failed to download ... file could not be downloaded (HTTP/1.1 404 Not Found)
Your credentials are required to fetch private repository metadata (...)
A token will be created and stored in "/.composer/auth.json", your password will never be stored
To revoke access to this token you can visit gitlab.com/profile/applications

要点是我希望它与组密钥而不是私有密钥一起使用。任何想法如何解决这个问题?

非常感谢!

4

0 回答 0