Skip to content

Commit efdc4e8

Browse files
authored
fix(gh-actions): provide gpg passphrase configuration (#457)
We use the default environment variable MAVEN_GPG_PASSPHRASE but setup-java configures it to use GPG_PASSPHRASE by default.
1 parent 526dc7d commit efdc4e8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/publish-release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ jobs:
101101
distribution: temurin
102102
java-version: '21'
103103
gpg-private-key: ${{ secrets.PMD_CI_GPG_PRIVATE_KEY }}
104+
gpg-passphrase-env-var: MAVEN_GPG_PASSPHRASE
104105

105106
- name: Cache local Maven repository
106107
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 #v6.1.0

‎.github/workflows/publish-snapshot.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
distribution: temurin
9292
java-version: '21'
9393
gpg-private-key: ${{ secrets.PMD_CI_GPG_PRIVATE_KEY }}
94+
gpg-passphrase-env-var: MAVEN_GPG_PASSPHRASE
9495

9596
- name: Cache local Maven repository
9697
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 #v6.1.0

0 commit comments

Comments
 (0)