Skip to content

Document limitations of using App Installation Tokens with GitHub Packages #9547

Description

@micimize

Code of Conduct

What article on docs.github.com is affected?

To my knowledge all "Working With" guides under https://docs.github.com/en/packages/working-with-a-github-packages-registry are affected

What part(s) of the article would you like to see updated?

Instead of specifying the fact that App Installation tokens don't work with some registries, the docs make no mention of them. Thus, an integration developer is left to discover that app installation token with package read permissions cannot read (at least) npm and maven packages from an error response:

npm ERR! code E401
npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/@myorg%2fpkg - This credential type is not supported for registry. Please use a Personal Access Token or GitHub Actions token instead.

Adding a note like the following would be good:

Note: GitHub App Installation Tokens are not currently supported by Maven, NPM, ..., or GHCR registries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions