diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-26 10:40:18 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-26 10:40:18 -0500 |
commit | 9b4eb91f9ab7642823ccc1635d530cc150e29d97 (patch) | |
tree | 7eb07ba13bb7414813225ec12a4726926433e856 | |
parent | 3f608ef85046bec4e2e8d8fe26e7c9df894ddb37 (diff) | |
download | korg-helpers-9b4eb91f9ab7642823ccc1635d530cc150e29d97.tar.gz |
Print out an attested-by line
We need to see who is the person attesting the patches.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | attest-patches.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/attest-patches.py b/attest-patches.py index ba3bcb3..896550d 100755 --- a/attest-patches.py +++ b/attest-patches.py @@ -382,6 +382,7 @@ def verify_attestation(cmdargs): session = requests.session() session.headers.update({'User-Agent': 'attest-patches/%s' % VERSION}) ecode = 1 + attestors = set() for msg in mbx: content = msg.as_bytes() ihash, mhash, phash = get_mailinfo_hashes(content) @@ -413,6 +414,7 @@ def verify_attestation(cmdargs): ecode = 128 else: if ecode != 128: + attestors.update(('%s (%s)' % (siguid, sigkey),)) ecode = 0 break else: @@ -436,7 +438,9 @@ def verify_attestation(cmdargs): for error in VALIDATION_ERRORS: logger.critical(' %s', error) else: - logger.critical('All patches passed attestation.') + logger.critical('All patches passed attestation:') + for attestor in attestors: + logger.critical(' Attested-by: %s', attestor) sys.exit(ecode) |