azure-pipelines-tasks-terraform
azure-pipelines-tasks-terraform copied to clipboard
Rate limit 0 reached :: provider.terraform-provider-github when using TF CLI
Hi Team,
I need your help.
I am using the TF CLI and during the TF plan, I am unable to set the github token. I have set this variable on the machine level, but the task doesn't get the token and the call the GitHub API as anonymous.
https://registry.terraform.io/providers/integrations/github/latest/docs
Here is my part of yaml pipeline
- task: TerraformCLI@2
inputs:
command: plan
workingDirectory: '$(System.DefaultWorkingDirectory)/${{parameters.env}}'
environmentServiceName: 'APP-SP-CORP-TF-${{parameters.env}}'
providerAzureRmSubscriptionId: '$(subscription_id)'
commandOptions: '-no-color -out=tfplan.json'
allowTelemetryCollection: false
publishPlanResults: '${{parameters.env}}'`
And when the API call anonymous, I got the rate limit issue in my pipeline. Can anyone face the similar issue and know the workaround for it.
I am using the GitHub service connection and tried both Azure Pipeline GitHub OAuth / Personal Access Token in the Azure Pipeline. Also set the export variable during the pipeline but none of them solve the issue mentioned above..