Composer hidden Token
You should generate new tokens on github
Settings \ Developer settings \ Personal access tokens
Note the token can also be added manually to the composer.json
file:
{
"require": {
"infoweb-internet-solutions/yii2-action": "*",
},
"config": {
"github-oauth": {
"github.com": "your long token"
}
},
"repositories": [
{
"type": "vcs",
"url": "[email protected]:infoweb-internet-solutions/yii2-action.git"
},
]
}
However, if you're committing the file to a VCS repository, you may not want to include the credentials in the file. In that case, you can use the COMPOSER_AUTH
environment variable to pass the same information.
export COMPOSER_AUTH='{"github-oauth":{"github.com": "your long token"}}'
composer update