Using GitHub Packages with GitHub Apps

I’d like to manage a private RubyGems on GitHub Packages. And I’d like to use a personal access token or GitHub Apps’s token(installation access token) to authenticate.

I could use a personal access token to authenticate. But i couldn’t use GitHub Apps’s token(installation access token). I explain here how to try.

  1. Create GitHub Apps with Packages (read and write access level) of Repository permissions.
  2. Install GitHub Apps to a repository that managing a private RubyGems.
  3. Generate GitHub Apps’s token(installation access token) with a private key.
  1. Fetch a private RubyGems from a repository with GitHub Apps’s token(installation access token).

GitHub Docs explains to use GitHub Packages with a personal access token to authenticate. But I didn’t find about using GitHub Packages with GitHub Apps.

Can i use GitHub Packages with GitHub Apps now?

Thank you.

GitHub Packages doesn’t currently support GitHub App tokens. The only exception is the default GitHub Actions token, which is a special kind of app token. For the moment, you will need to use a PAT for programmatic access.

Regards,
Jamie.

Thank you for answering. I understand :smiley: