Azure / arm-deploy

ARM action to deploy an Azure Resource Manager (ARM) template to all the deployment scopes
MIT License
84 stars 39 forks source link

ERROR: Error while attempting to retrieve the latest Bicep version: 403 Client Error: rate limit exceeded for url: https://api.github.com/repos/Azure/bicep/releases/latest. #122

Closed sh-jthorpe closed 1 year ago

sh-jthorpe commented 1 year ago

I'm really surprised no-one has logged this yet.

It's been mentioned over in AZURE/bicep https://github.com/Azure/bicep/issues/3689

with:
    subscriptionId: ***
    resourceGroupName: shp-DataGateway-rg
    template: Deployments/Main.bicep
    scope: resourcegroup
    parameters: Deployments/prd.Main.parameters.json
    failOnStdErr: false
    deploymentName: shp-DataGateway-func-Deployment
  env:
    AZURE_FUNCTIONAPP_PACKAGE_PATH: .
    DOTNET_VERSION: 6.0.x
    AZURE_HTTP_USER_AGENT: 
    AZUREPS_HOST_ENVIRONMENT: 
Changing subscription context...
Validating template...
Warning: ERROR: Error while attempting to retrieve the latest Bicep version: [4](https://github.com/StottHoare/DataGateway-func/actions/runs/3763393948/jobs/6396885352#step:4:4)03 Client Error: rate limit exceeded for url: https://api.github.com/repos/Azure/bicep/releases/latest.

Warning: Template validation failed.
Creating deployment...
Error: ERROR: Error while attempting to retrieve the latest Bicep version: 403 Client Error: rate limit exceeded for url: https://api.github.com/repos/Azure/bicep/releases/latest.

Error: Deployment failed.

I'm running about 1-3 actions per day.

The issue linked above should indicate the fix or workaround that needs to be applied here.

sh-jthorpe commented 1 year ago

Retried my Github action immediately after it failed, and it's completed successfully.

asankagarusinghe commented 1 year ago

We applied this workaround for now. it works for us at the moment.

https://github.com/Azure/bicep/issues/3689#issuecomment-1366320925

t-dedah commented 1 year ago

Hi @sh-jthorpe It looks like they deployed a fix for this yesterday. https://github.com/Azure/bicep/issues/3689#issuecomment-1370342778

Closing this issue now. Feel free to reopen if you have any further questions.

t-dedah commented 1 year ago

Thank you @asankagarusinghe for the workaround.