File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,15 @@ test/lint/git-subtree-check.sh src/crc32c
23
23
test/lint/check-doc.py
24
24
test/lint/lint-all.sh
25
25
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
28
33
${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;
30
35
fi
31
36
32
37
echo
You can’t perform that action at this time.
0 commit comments