'denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource

i am using VSCODE to push image which is stored in Docker repo locally to GCP Artifact repo. i ran gcloud auth configure-docker us-west1-docker.pkg.dev command in GCP console and while pushing image from VSCODE I got below error

command :-docker push us-west1-docker.pkg.dev/xxx/reponame/test-image

59769727d80: Waiting
348622fdcc61: Waiting
4ac8bc2cd0be: Waiting
denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource "projects/xxx/locations/us-west1/repositories/reponame" (or it may not exist)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source