title: Github Actions Pull Container From Private Google Artifacts Registry
body: <p>This is a simple question, how to pull a container image from a private google artifacts registry? I have a service account (temporary) with owner access.</p>
  <p>This is my code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>jobs:
    my_job:
      runs-on: ubuntu-20.04
      container:
        image: asia-southeast2-docker.pkg.dev/my-project/my-repo/my-image:latest
        options: --user root</code></pre>
  </div>
  </div>
  </p>
  <p>As far as I know, if pull from private docker hub, we can add like this</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>jobs:
    my_job:
      runs-on: ubuntu-20.04
      container:
        image: my-docker-hub/my-image:latest
        options: --user root
        credentials:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}</code></pre>
  </div>
  </div>
  </p>
  <p>How can I pull from the private google artifacts registry?
  Thank you!</p>