Skip to content

Commit dc498e2

Browse files
committed
Use non-interactive GPG trust mode
1 parent f191a97 commit dc498e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maven-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
max-cache-ttl 7200
4545
EOF
4646
47-
# Trust the key
48-
echo -e "trust\n5\ny\nquit\n" | gpg --command-fd 0 --edit-key ${{ secrets.GPG_KEYNAME }}
47+
# Trust the key (non-interactive)
48+
gpg --batch --yes --trust-model always --edit-key ${{ secrets.GPG_KEYNAME }} trust quit
4949
5050
# Restart GPG agent
5151
gpgconf --kill gpg-agent

0 commit comments

Comments
 (0)