Improvement

March 24, 20211 minute read

Packages: Container registry now supports GITHUB_TOKEN

You can now use GITHUB_TOKEN to authenticate with the Packages Container registry in your Actions workflows. Say goodbye to all those PATs (delete them from your profile too!), and say hello to using the GITHUB_TOKEN in your workflows to read, create, update, and delete containers.

diff
      - name: Login to Packages Container registry
        uses: docker/login-action@v1 
        with:
          registry: $
          username: $
-          password: $
+          password: $

Write and read access of Actions to containers can be managed in the container settings.

manage actions access animation

Learn more about <a href="https://docs.github.com/en/packages/guides/using-github-packages-with-github-actions#authenticating-to-github-container-registryauthenticating to Container registry with GitHub Actions

For questions, visit the GitHub Packages community

To see what's next for Packages, visit our public roadmap

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.