Skip to content

[BUG] Failed to clone from the private organisation repository #24

@IUADE0UQ

Description

@IUADE0UQ

Describe the bug
When I'm trying to make apm install organisation/repository, and this repository is private the APM asking me user name and password. For password I tryied both type of tokens with all permissions but nothing work

To Reproduce
Steps to reproduce the behavior:

  1. Create private repository in the organisation
  2. Generate token with all permissions, share access for organisation for the token
  3. Push the apm project in the repo
  4. Try to install apm package from the repo using the username and new token

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • OS: macOS
  • Python Version: [3.9.6]
  • APM-CLI Version: [e.g. 0.5.0]

Logs
Validating 1 package(s)...
✓ my-org/apm-workflows - accessible
Added my-org/apm-workflows to apm.yml
Updated apm.yml with 1 new package(s)
Installing dependencies from apm.yml...
Installing APM dependencies (1)...
my-org/apm-workflows#main
❌ Failed to install my-org/apm-workflows: Failed to clone repository my-org/apm-workflows using all available methods. Please check repository access permissions and authentication setup. Last
error: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --depth=1 --branch=main -- https://github.com/my-org/apm-workflows /var/folders/gz/62ppwmt12fj6mskzj30msvth0000gp/T/tmpzjf4sa_1
stderr: 'Cloning into '/var/folders/gz/62ppwmt12fj6mskzj30msvth0000gp/T/tmpzjf4sa_1'...
remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/my-org/apm-workflows/'
'
Installed 0 APM dependencies
No MCP dependencies found in apm.yml

Dependencies installation complete

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions