Unable to Clone a private repository using Personal access token and Fine grained token in local using command Prompt #144342
Replies: 1 comment
-
Ensure that your personal access token (PAT) has the necessary permissions. For cloning, you typically need repo scope for classic tokens or the appropriate repository permissions for fine-grained tokens.
6.Credential Caching: |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
General
Body
I am unable to Clone a private repository using Personal access token and Fine grained token in local using command Prompt. I am running following command in cmd. My goal is to integrate Git repo with snowflake, I was able to create SECRET and API INTEGRATION objects in snowflake, however when I tried creating GIT REPOSITORY, I was getting this error, "Failed to access the Git Repository. Operation 'clone' is not authorized."
Then I tried cloning my private repository locally as follows and got error message as follows.
https://@github.com//.git
Here is the error message I got.
remote: Personal access tokens (classic) are forbidden from accessing this repository.
fatal: unable to access 'https://github.com/username/Snowflaketest/': The requested URL returned error: 403
When I tried using fine grained token, I got the following error.
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/username/Snowflaketest/': The requested URL returned error: 403
Let me know how can I resolve this issue or what might be causing this.
Beta Was this translation helpful? Give feedback.
All reactions