1
0
mirror of synced 2026-01-03 06:04:16 -05:00
Files
docs/data/reusables/package_registry/authenticate-packages.md
2023-02-15 15:16:18 +00:00

1.2 KiB

{% data reusables.package_registry.packages-classic-pat-only %}

You need an access token to publish, install, and delete private, internal, and public packages.

You can use a {% data variables.product.pat_v1 %} to authenticate to {% data variables.product.prodname_registry %} or the {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API. When you create a {% data variables.product.pat_v1 %}, you can assign the token different scopes depending on your needs. For more information about packages-related scopes for a {% data variables.product.pat_v1 %}, see "AUTOTITLE."

To authenticate to a {% data variables.product.prodname_registry %} registry within a {% data variables.product.prodname_actions %} workflow, you can use:

  • GITHUB_TOKEN to publish packages associated with the workflow repository.
  • a {% data variables.product.pat_v1 %} with at least read:packages scope to install packages associated with other private repositories (which GITHUB_TOKEN can't access).