Skip to content

Commit

Permalink
use --trusted-key
Browse files Browse the repository at this point in the history
  • Loading branch information
samj committed Jul 23, 2024
1 parent 69670a9 commit 1077133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/verify-gpg-signatures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ CHECK_ALL_COMMITS="${CHECK_ALL_COMMITS:-false}"
for key in "$TRUSTED_KEYS_DIR"/*; do
gpg --import "$key"
key_id=$(gpg --with-colons --show-keys "$key" | awk -F: '/^pub:/ {print $5}')
echo -e "5\ny\n" | gpg --command-fd 0 --expert --batch --edit-key "$key_id" trust
gpg --quiet --batch --yes --trusted-key "$key_id"
done

# Print trusted keys
echo "Trusted keys:"
gpg --list-keys --fingerprint
gpg --list-keys --with-fingerprint | awk '/^pub|^uid|^fpr/ {print}'

# Function to check if a key is trusted or signed by a trusted key
is_key_trusted_or_signed_by_trusted() {
Expand Down

0 comments on commit 1077133

Please sign in to comment.