Where to keep a GPG secret key for a Maven project in CI environment?

后端 未结 1 1883
孤街浪徒
孤街浪徒 2021-01-18 08:40

I\'m trying to use maven-gpg-plugin:sign in order to sign project artifacts before deployment to Sonatype OSS repository. The question is where shall I keep my secret key

相关标签:
1条回答
  • 2021-01-18 09:00

    If key is sensitive put it in ~/.gnupg directory on CI server and protect that directory with proper access modifiers. 2nd approach will allow every developer with access to project to see key.

    0 讨论(0)
提交回复
热议问题