Skip to content

Commit 864e9ce

Browse files
fix: GPG key and Maven credentials in release workflow (#171)
Revised the GPG key and Maven credentials used in the GitHub release workflow for better security and consistency. The `gpg-private-key` and `gpg-passphrase` are now using updated secret variables. Updated the Maven credentials to use consistent naming conventions across the workflow.
1 parent 8b3cbed commit 864e9ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ jobs:
4141
server-id: github
4242
server-username: MAVEN_USERNAME
4343
server-password: MAVEN_PASSWORD
44-
gpg-private-key: ${{ secrets.OPENTDF_GPG_KEY }}
45-
gpg-passphrase: ${{ secrets.OPENTDF_GPG_KEY_PASSPHRASE }}
44+
gpg-private-key: ${{ secrets.GPG_KEY }}
45+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4646
- name: Publish package
4747
run: mvn --batch-mode deploy -DskipTests
4848
env:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5050
BUF_INPUT_HTTPS_USERNAME: opentdf-bot
5151
BUF_INPUT_HTTPS_PASSWORD: ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }}
52-
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
53-
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
54-
MAVEN_GPG_PASSPHRASE: ${{ secrets.OPENTDF_GPG_KEY_PASSPHRASE }}
52+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
53+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
54+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}

0 commit comments

Comments
 (0)