Skip to content

Commit ea2f760

Browse files
ShahanaFarooquirustyrussell
authored andcommitted
tools: Read the correct default-key from gpgconf
Workflow error `gpg: using "4129A994AA7E9852" is thrown due to incorrect gpg parsing. Update the awk parsing logic to properly locate and extract the key fingerprint within the gpgconf --list-options output structure, ensuring automated signing uses the correct key. Changelog-None.
1 parent 8578d6c commit ea2f760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ if [ -z "${TARGETS##* sign *}" ]; then
228228
echo "Signing Release"
229229
cd release/ || exit
230230
sha256sum clightning-"$VERSION"* > SHA256SUMS-"$VERSION"
231-
gpg -sb --armor -o SHA256SUMS-"$VERSION".asc "$(gpgconf --list-options gpg | awk -F: '$1 == "default-key" {print $10}' | tr -d '"')" SHA256SUMS-"$VERSION"
231+
gpg -sb --armor --default-key "$(gpgconf --list-options gpg | awk -F: '$1 == "default-key" {print $10}' | tr -d '"')" -o SHA256SUMS-"$VERSION".asc SHA256SUMS-"$VERSION"
232232
cd ..
233233
echo "Release Signed"
234234
fi

0 commit comments

Comments
 (0)