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
- Have a private GitHub repo containing a valid
marketplace.json at the root
- Ensure you have valid credentials with
repo scope (e.g. via gh auth login)
- Run
apm marketplace add <owner>/<private-repo> --verbose
- 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.
Describe the bug
apm marketplace add OWNER/REPOalways fails silently when the marketplace repo is private. The command reportsNo marketplace.json foundeven when the file exists and the user has valid credentials.To Reproduce
marketplace.jsonat the rootreposcope (e.g. viagh auth login)apm marketplace add <owner>/<private-repo> --verboseNo marketplace.json found in '<owner>/<private-repo>'Expected behavior
apm marketplace addshould successfully register the marketplace using the authenticated user's credentials, and report the number of plugins found.Environment
Logs
Additional context
The file is accessible via
gh apiwith the same credentials, confirming it is an authentication issue in theapmCLI rather than a missing file.