Sending image to repository not working

Access denied, refers to a lack of permission to use the resource. You need to review if your repos have the level of permissions to push changes to a repository.

To grant a repository the permission to push follow these steps:

  1. In the Google Cloud Console, open Cloud Source Repositories in the My source view tab.
  2. Click the name of a repository.
  3. The Files view opens.
  4. Click Settings settings.
  5. The General settings page opens.
  6. Click Permissions.
  7. The Permissions page opens.
  8. In the Members field, enter the user's email address.
  9. In the Role drop-down list, select Source repository > Source Repository Writer.
  10. Click Add.

Cloud Source Repositories uses IAM for access control. You can use IAM to add team members to your project and to grant them permissions to create, view, and update repositories.

Use the table in this page to select the appropriate role for an account based on the types of actions you want that account to perform.