通过另一个存储库的管道访问BitBucket存储库

Kar*_*yal 5 git bitbucket

我有2个存储库:AB.在构建期间B需要存储库A.B包含在子模块中A.因此,A我有.gitmodules:

[submodule "src/assets/B"]
    path = src/assets/B
    url = https://bitbucket.org/org_name/B.git
Run Code Online (Sandbox Code Playgroud)

bitbucket-pipelines.ymlA有下列命令初始化子模块:

git submodule update --init
Run Code Online (Sandbox Code Playgroud)

因为A我启用了Pipelines并生成了一个SSH密钥对(公共和私有).

因为B我已经将上述公钥复制到Access Key部分,以便管道A可以git clone B.

我收到了身份验证错误.

fatal: could not read Password for 'https://my_username@bitbucket.org'

我究竟做错了什么?