如何添加注释并签名?
使用 BitBucket,repo 具有验证提交签名拒绝提交和标签,但未启用验证的 GPG 签名。
我的构建作业为刚刚构建的提交添加了一条注释:
16:10:53 + git notes append --file=notes.txt
16:10:53 + git push origin 'refs/notes/*'
16:10:54 remote: Signed commits and tags are enforced for this repository.
16:10:54 remote: 32bba27cbe6 was not signed.
16:10:54 To https://bitbucket.XXX.com/scm/YYY/ZZZ.git
16:10:54 ! [remote rejected] refs/notes/commits -> refs/notes/commits (pre-receive hook declined)
16:10:54 error: failed to push some refs to 'https://****:****@bitbucket.XXX.com/scm/YYY/ZZZ.git'
[Pipeline] }