From b315e2455e5121b6551c17bc7793ef0a101080f7 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Mon, 24 Oct 2016 12:03:53 -0400 Subject: tools: use long format for gpg fingerprint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Git has been using my Long format fingerprint in the tagging messages, this has been causing the release script to fail on my keys. It would also be wise to be using the long format on keys based on some attacks that hack been found in the wild around short keys. PR-URL: https://github.com/nodejs/node/pull/9258 Reviewed-By: Johan Bergström Reviewed-By: James M Snell Reviewed-By: Rod Vagg --- tools/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/release.sh') diff --git a/tools/release.sh b/tools/release.sh index 397d3d466d..1151b6dd68 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -50,7 +50,7 @@ elif [ $keycount -ne 1 ]; then done fi -gpgfing=$(gpg --fingerprint $gpgkey | grep 'Key fingerprint =' | awk -F' = ' '{print $2}' | tr -d ' ') +gpgfing=$(gpg --keyid-format 0xLONG --fingerprint $gpgkey | grep 'Key fingerprint =' | awk -F' = ' '{print $2}' | tr -d ' ') if ! test "$(grep $gpgfing README.md)"; then echo 'Error: this GPG key fingerprint is not listed in ./README.md' -- cgit v1.2.3