Terraform after creating dataform repositories with the following setting. The repository is created in dataform but unable to access.Getting token as invalid refer the screenshot.
git_remote_settings {
url = "https://github.com/test-group/**-app.git"
default_branch = "main"
authentication_token_secret_version = google_secret_manager_secret_version.secret_version.id
}
GCP's documentation (found here: https://cloud.google.com/dataform/docs/connect-repository) is incorrect. It is not currently possible to use the fine grained personal access tokens with Dataform.
You must use a classic personal access token. You must also provide it the "repo" scope (full control). It won't work unless all of the scopes under repo are enabled.
It should then work. I really wanted to use the fine grained token, but it does not work. It will show you an error about being able to reach the repo URL if you provide the fined grain token as a secret.