From f3922e4fc7fbdae19b49ec0bbcc71aaded0fc508 Mon Sep 17 00:00:00 2001 From: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:28:59 -0700 Subject: [PATCH] use the full 40-character fingerprint --- .github/workflows/pre-release.yaml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index f8faf16c..5c32320b 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -39,7 +39,7 @@ jobs: echo "Importing gpg key" echo -n "$GPG_KEY" | base64 --decode | gpg --import --batch >/dev/null # Extract the key ID from the list of secret keys - GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec/ {print $5}') + GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^fpr/ {print $10}') echo "Extracted GPG Key ID: $GPG_KEY_ID" # Automatically trust the key by creating a trust level entry for the key (ultimate trust) echo -e "$GPG_KEY_ID:6:" | gpg --import-ownertrust diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e691f890..753a45a9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,7 +39,7 @@ jobs: echo "Importing gpg key" echo -n "$GPG_KEY" | base64 --decode | gpg --import --batch >/dev/null # Extract the key ID from the list of secret keys - GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec/ {print $5}') + GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^fpr/ {print $10}') echo "Extracted GPG Key ID: $GPG_KEY_ID" # Automatically trust the key by creating a trust level entry for the key (ultimate trust) echo -e "$GPG_KEY_ID:6:" | gpg --import-ownertrust