Skip to content

Commit 61dd7a8

Browse files
committed
Modify GPG trust configuration
1 parent dc498e2 commit 61dd7a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/maven-central.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
default-key ${{ secrets.GPG_KEYNAME }}
3737
use-agent
3838
pinentry-mode loopback
39+
trust-model always
3940
EOF
4041
4142
cat > ~/.gnupg/gpg-agent.conf << EOF
@@ -44,8 +45,8 @@ jobs:
4445
max-cache-ttl 7200
4546
EOF
4647
47-
# Trust the key (non-interactive)
48-
gpg --batch --yes --trust-model always --edit-key ${{ secrets.GPG_KEYNAME }} trust quit
48+
# Set trust level
49+
echo -e "5\ny\n" | gpg --command-fd 0 --edit-key ${{ secrets.GPG_KEYNAME }} trust
4950
5051
# Restart GPG agent
5152
gpgconf --kill gpg-agent

0 commit comments

Comments
 (0)