azure-pipelines-tasks-terraform icon indicating copy to clipboard operation
azure-pipelines-tasks-terraform copied to clipboard

Rate limit 0 reached :: provider.terraform-provider-github when using TF CLI

Open kashan-ali-syed opened this issue 1 year ago • 0 comments

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.

image 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.

rate-limit-github-api

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..

kashan-ali-syed avatar Aug 25 '24 13:08 kashan-ali-syed