Skip to content

Commit

Permalink
Update verify_signing.groovy to check Windows exes only have one sign…
Browse files Browse the repository at this point in the history
…ature

Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Dec 5, 2024
1 parent fb9c821 commit 4b16a3e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pipelines/build/common/verify_signing.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,15 @@ void verifyExecutables(String unpack_dir) {
unsigned="$unsigned $f"
cc_unsigned=$((cc_unsigned+1))
else
echo "Signed correctly: ${f}"
cc_signed=$((cc_signed+1))
num_sigs=$("${signtool}" verify /all /pa ${f} | grep -E '^[0-9][[:space:]]+sha256' | wc -l)
if [[ "$num_sigs" -ne 1 ]]; then
echo "Error: ${f} has ${num_sigs} Signatures, it must only have one."
unsigned="$unsigned $f"
cc_unsigned=$((cc_unsigned+1))
else
echo "Signed correctly: ${f}"
cc_signed=$((cc_signed+1))
fi
fi
done
Expand Down

0 comments on commit 4b16a3e

Please sign in to comment.