Octokit Ruby gem to get list of npm packages from private registry

22 views Asked by At

I'd like to use Octokit Ruby gem to get a list of npm packages from a private GitHub package registry.

I've successfully gotten the results using this cURL command

curl -L \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  "https://api.github.com/orgs/ORG/packages?package_type=npm"

I'm not seeing an analogous strategy in Octokit Ruby gem docs.

Any ideas?

0

There are 0 answers