eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.21k stars 867 forks source link

[feature request] add authenticated download to github (for yarn) #1029

Open sbernard31 opened 2 years ago

sbernard31 commented 2 years ago

Hi,

I'm committer on a project hosted at Eclipse foundation. My project uses frontend-maven-plugin to build. Eclipse foundation provides us a Jenkins instance to build and release it.

But recently I'm not able to download yarn anymore from https://github.com/yarnpkg/yarn/releases/download/ The reason seems to be a github download limitation (5000/request/ip/hour) which seems to be reached because CI public IP seems shared between a lot of Jenkins instance (not only our project)

One solution could be to be able to download yarn package from github using authenticated download. See https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/912#note_570713

Is there a way to configure frontend-maven-plugin in a way that yarn is downloaded from github using authenticated request ? If no, Is it something that you could consider to add ?

Thx :pray: