I am trying to connect a git repository hosted on Google Source Repository with the Dataform environment. The dataform documentation states that use of personal access tokens that is accessed by dataform using Secret key. Since source repository does not support personnel access tokens; What must be the steps to connect the Google Source Repository with the Dataform repository?
I tried to create a new SSH key and added the primary key as a new secret in the GCP environment. The repository gives the following error.
We are unable to connect to your Git provider with the configured secret. Check that the token is valid and has not expired.
That means the secret is interpreted as a token, which is only used for HTTPS URL.
And if your remote URL is an HTTPS one, creating an SSH (private/public) key pair won't be useful.
If you connect to a third-party repository like a GitHub one, you will need a PAT (Personal Access Token).
To connect to a G-CSR (Google Cloud Source Repository), you must first check your IAM (Identity and Access Management) in order to make sure you have the right to access/clone the repository.
The clone documentation suggests "Click the SSH authentication tab and follow the instructions to clone your repository."
However, you don't need to register a secret, just to register your SSH public key on Google Cloud.