hashicorp / setup-packer

Run HashiCorp Packer as part of your GitHub Actions Workflow
https://github.com/marketplace/actions/setup-hashicorp-packer
Apache License 2.0
144 stars 83 forks source link

Plugin host rate limited the plugin getter #71

Closed VAIBHAV7500 closed 1 year ago

VAIBHAV7500 commented 1 year ago

Expected Behavior

Packer should not throw rate limit error.

Current Behavior

During packer init the packer is trying to pull the plugins but it says Plugin host rate limited the plugin getter. I'm using GitHub actions and have no control over the host.

Steps to Reproduce

Create a GitHub action to run packer and it's coming intermittently.

ksatirli commented 1 year ago

Thanks for reporting this @VAIBHAV7500!

Can you provide the following to help debug this:

Thanks!

VAIBHAV7500 commented 1 year ago

Thanks for acknowledging it. But I was able to resolve the issue. Adding PACKER_GITHUB_API_TOKEN env did the job.

- name: Init Packer
  uses: hashicorp/packer-github-actions@master
  with:
    command: init
    target: packer_file.pkr.hcl
  env:
    PACKER_GITHUB_API_TOKEN: ${{ secrets.PACKER_GITHUB_API_TOKEN }}
ksatirli commented 1 year ago

Great news @VAIBHAV7500!

Looks like you hit a GitHub API limitation and were able to resolve it by providing a PAT.

Thanks for sharing your solution!