我有一个运行良好的 bitbucket 管道,但现在在一个项目中,我需要从一个私有存储库中提取,该存储库包含我的 composer.json 中所需的一个包。
当我在管道中进行作曲家安装时,它会因此错误而停止
Failed to execute git clone --no-checkout 'git@bitbucket.org:company/package.git' [...]
Cloning into '/opt/atlassian/pipelines/agent/build/vendor/company/package'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
管道没有定义任何 SSH 密钥,因此不允许拉取,但我怎么能定义一个,因为它是短暂的?
或者也许我应该以其他方式定义要求?