You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Private terraform modules hosted on GitHub (or any other git provider). You need to authenticate, but the credentials are only persisted to the local repo config, not 'globally'. When running terraform init, the credentials are not provided and you are not authenticated.
Common workarounds in place today include:
getting and managing a Personal Access Token and setting the global config with a script task:
Describe your feature request here
Use Case
Private terraform modules hosted on GitHub (or any other git provider). You need to authenticate, but the credentials are only persisted to the local repo config, not 'globally'. When running terraform init, the credentials are not provided and you are not authenticated.
Common workarounds in place today include:
Proposed Solution
New configuration for 'Get Sources' to persist credentials globally - persistCredentialsGlobally: true | false (Default: false)
Implementation Detail
New method in https://github.com/microsoft/azure-pipelines-agent/blob/master/src/Agent.Plugins/GitCliManager.cs like
GitConfig
butGitGlobalConfig
that just adds the flag--global
to the command argsAdded logic in https://github.com/microsoft/azure-pipelines-agent/blob/master/src/Agent.Plugins/GitSourceProvider.cs to support calling that method instead when global flag is true
The text was updated successfully, but these errors were encountered: