Skip to content

Commit fa00160

Browse files
author
MarcoFalke
committed
ci: Re-enable verify-commits.py check
1 parent fa880b1 commit fa00160

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ci/lint/06_script.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ test/lint/git-subtree-check.sh src/crc32c
2323
test/lint/check-doc.py
2424
test/lint/lint-all.sh
2525

26-
if [ "$CIRRUS_REPO_FULL_NAME" = "bitcoin/bitcoin" ] && [ -n "$CIRRUS_CRON" ]; then
27-
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
26+
if [ "$CIRRUS_REPO_FULL_NAME" = "bitcoin/bitcoin" ] && [ "$CIRRUS_PR" = "" ] ; then
27+
# Sanity check only the last few commits to get notified of missing sigs,
28+
# missing keys, or expired keys. Usually there is only one new merge commit
29+
# per push on the master branch and a few commits on release branches, so
30+
# sanity checking only a few (10) commits seems sufficient and cheap.
31+
git log HEAD~10 -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
32+
git log HEAD~10 -1 --format='%H' > ./contrib/verify-commits/trusted-git-root
2833
${CI_RETRY_EXE} gpg --keyserver hkps://keys.openpgp.org --recv-keys $(<contrib/verify-commits/trusted-keys) &&
29-
./contrib/verify-commits/verify-commits.py --clean-merge=2;
34+
./contrib/verify-commits/verify-commits.py;
3035
fi
3136

3237
echo

0 commit comments

Comments
 (0)