SAP / generator-easy-ui5

Meta-generator various project types within the UI5 Universe
https://blogs.sap.com/2021/04/09/easy-ui5-3.0-from-community-contributions-to-community-plugins/
Apache License 2.0
235 stars 72 forks source link

API rate limit hit during build of a dependent package #100

Closed marcellourbani closed 2 years ago

marcellourbani commented 2 years ago

My CI builds started failing today because:

I fixed it removing it as a dependency, leaving this message for posterity

petermuessig commented 2 years ago

Hi @marcellourbani ,

big sorry for replying that late to your issue.

The API limit happens when using the Octokit API without a GitHub auth token. Unfortunately, the GitHub auth token cannot be easily used in the postinstall.js. One option I can see is to use the GitHub auth token from the NPM configuration, e.g.:

npm config set easy-ui5_ghAuthToken=XXX

This could be used to also ensure that a GitHub auth token is used in the postinstall.js. It would require a little extension to the generator.

Best regards, Peter

marcellourbani commented 2 years ago

Thanks @petermuessig I didn't know about npm config, thanks! Might warrant a line in README

petermuessig commented 2 years ago

@marcellourbani - this only works for the usage of the generator but it is not yet considered for the postinstall.js. This needs to be added there.

I'll keep the issue open to follow up on that.