

You can authenticate to GitHub Packages with Gradle using either Gradle Groovy or Kotlin DSL by editing your adle file (Gradle Groovy) or file (Kotlin DSL) file to include your personal access token. For more information, see " About GitHub Packages."
GITHUB ACTIONS GRADLE INSTALL
You must use a personal access token with the appropriate scopes to publish and install packages in GitHub Packages. a PAT with at least packages:read scope to install packages associated with other private repositories (which GITHUB_TOKEN can't access).įor more information about GITHUB_TOKEN used in GitHub Actions workflows, see " Authentication in a workflow." For more information about using GITHUB_TOKEN with Gradle, see " Publishing Java packages with Gradle." Authenticating with a personal access token.GITHUB_TOKEN to publish packages associated with the workflow repository.To authenticate to a GitHub Packages registry within a GitHub Actions workflow, you can use: For more information about packages-related scopes for a PAT, see " About permissions for GitHub Packages."

When you create a personal access token, you can assign the token different scopes depending on your needs. You can use a personal access token (PAT) to authenticate to GitHub Packages or the GitHub API.

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