我有一个私有存储库,我想包含在我的composer.json中,它将私有存储库放在vendor文件夹中.使用https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md#security中的代码和SSH安全性,您需要填写一些用户特定的部分(见下文).
"repositories": [
{
"type": "vcs",
"url": "ssh2.sftp://example.org",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/home/composer/.ssh/id_rsa.pub",
"privkey_file": "/home/composer/.ssh/id_rsa"
}
}
}
]
Run Code Online (Sandbox Code Playgroud)
问题是我正在与其他程序员合作,我不想在composer.json中使用特定的用户内容.有没有办法从composer.json中排除特定的用户内容?
我实际上希望作曲家在命令行内的执行期间向程序员索要个人公钥和私钥.