Merge #11597: [trivial] Fix error messages in CFeeBumper
[bitcoinplatinum.git] / contrib / verify-commits / README.md
blobe9e3f65da292a5bd80377f43cbc21cdb9e7f2c37
1 Tooling for verification of PGP signed commits
2 ----------------------------------------------
4 This is an incomplete work in progress, but currently includes a pre-push hook
5 script (`pre-push-hook.sh`) for maintainers to ensure that their own commits
6 are PGP signed (nearly always merge commits), as well as a script to verify
7 commits against a trusted keys list.
10 Using verify-commits.sh safely
11 ------------------------------
13 Remember that you can't use an untrusted script to verify itself. This means
14 that checking out code, then running `verify-commits.sh` against `HEAD` is
15 _not_ safe, because the version of `verify-commits.sh` that you just ran could
16 be backdoored. Instead, you need to use a trusted version of verify-commits
17 prior to checkout to make sure you're checking out only code signed by trusted
18 keys:
20     git fetch origin && \
21       ./contrib/verify-commits/verify-commits.sh origin/master && \
22       git checkout origin/master
24 Note that the above isn't a good UI/UX yet, and needs significant improvements
25 to make it more convenient and reduce the chance of errors; pull-reqs
26 improving this process would be much appreciated.