Skip to content

[BUG] apm marketplace add silently fails for private repos #693

@richard-fowles-epam

Description

@richard-fowles-epam

Describe the bug
apm marketplace add OWNER/REPO always fails silently when the marketplace repo is private. The command reports No marketplace.json found even when the file exists and the user has valid credentials.

To Reproduce

  1. Have a private GitHub repo containing a valid marketplace.json at the root
  2. Ensure you have valid credentials with repo scope (e.g. via gh auth login)
  3. Run apm marketplace add <owner>/<private-repo> --verbose
  4. See error: No marketplace.json found in '<owner>/<private-repo>'

Expected behavior
apm marketplace add should successfully register the marketplace using the authenticated user's credentials, and report the number of plugins found.

Environment

  • OS: macOS
  • APM Version: 0.8.11

Logs

[*] Registering marketplace 'my-marketplace'...
    Repository: owner/private-repo
    Branch: main
[x] No marketplace.json found in 'owner/private-repo'. Checked: marketplace.json, .github/plugin/marketplace.json, .claude-plugin/marketplace.json

Additional context
The file is accessible via gh api with the same credentials, confirming it is an authentication issue in the apm CLI rather than a missing file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions