You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I need to rotate my GitHub token or Private Packagist/Artifactory authentication, I would like to do it in one place. NPM supports using environment variables in the .npmrc file but I do not see that Composer also supports it in auth.json files. I propose that we add environment variable support so that I could do the following:
This would allow me to re-use the same variables across Composer and NPM since we use Artifactory for both at the current project I work at, and I only have to update them in once place (my .zshenv file).
The text was updated successfully, but these errors were encountered:
I suppose that I could generate the full COMPOSER_AUTH environment variable too in my .zshenv, but I'd like to have this supported since other package managers support it.
Since we already support COMPOSER_AUTH, I see no motivation to support something else. You can even nest a variable inside said variable.
Supporting ENV variables inside configuration files is not a trivial feature. A pull request could go a lot further than a simple 'request for a change'.
Right we do support COMPOSER_AUTH for now that's your best option, you could still define it dynamically in your zshenv using other env vars as input I assume, so that you don't duplicate secrets.
If I need to rotate my GitHub token or Private Packagist/Artifactory authentication, I would like to do it in one place. NPM supports using environment variables in the
.npmrc
file but I do not see that Composer also supports it in auth.json files. I propose that we add environment variable support so that I could do the following:This would allow me to re-use the same variables across Composer and NPM since we use Artifactory for both at the current project I work at, and I only have to update them in once place (my
.zshenv
file).The text was updated successfully, but these errors were encountered: