We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc498e2 commit 61dd7a8Copy full SHA for 61dd7a8
.github/workflows/maven-central.yml
@@ -36,6 +36,7 @@ jobs:
36
default-key ${{ secrets.GPG_KEYNAME }}
37
use-agent
38
pinentry-mode loopback
39
+ trust-model always
40
EOF
41
42
cat > ~/.gnupg/gpg-agent.conf << EOF
@@ -44,8 +45,8 @@ jobs:
44
45
max-cache-ttl 7200
46
47
- # Trust the key (non-interactive)
48
- gpg --batch --yes --trust-model always --edit-key ${{ secrets.GPG_KEYNAME }} trust quit
+ # Set trust level
49
+ echo -e "5\ny\n" | gpg --command-fd 0 --edit-key ${{ secrets.GPG_KEYNAME }} trust
50
51
# Restart GPG agent
52
gpgconf --kill gpg-agent
0 commit comments