Frappe docker build image error with custom apps [Write access to repository not granted. error 403]

I am trying to build the image for deployment with images/custom/ContainerFile.

I have added private repo in apps.json

[
  {
    "url": "https://github.com/frappe/erpnext.git",
    "branch": "version-14"
  },
  {
    "url": "https://<github_user_name>:<fine_grained_personal_access_token>@github.com/username/repo.git",
    "branch": "main"
  }  
]

error:

396.0 Cloning into 'timelogapp'...
397.1 remote: Write access to repository not granted.
397.1 fatal: unable to access '<repo_url>': The requested URL returned error: 403

Use class PAT(Personal Access Token) as Fine Grained PAT are in beta and didn’t have support.