feature: validate commits in reverse date-time order when MAX_COMMITS_TO_CHECK is used #12

Merged
artur merged 1 commits from date-order into main 2025-06-04 03:16:26 +00:00
Owner

Fixes #11

This ensures that the most recent commits are the ones that are validated.

Fixes #11 This ensures that the most recent commits are the ones that are validated.
phil added 1 commit 2025-06-03 11:40:14 +00:00
feature: validate commits in reverse date-time order when MAX_COMMITS_TO_CHECK is used
All checks were successful
Validate Trusted Timestamps Actions Demo / Validate (push) Successful in 28m9s
d48097695b
This ensures that the most recent commits are the ones that are validated.
phil requested review from artur 2025-06-03 11:40:14 +00:00
Author
Owner

Sample output from running on the JankariTechUG/accounting repo:

phil@phil-Inspiron-5468:~/git/JankariTechUG/accounting$ ~/git/JankariTechUG/GitTrustedTimestamps/hooks/validate.sh --maxcommits 5
Checking repository integrity...
Repository integrity OK

Validating timestamps. This may take a while...

Commit 7c400ebea625dbeadbad350fa420a872b61783de, which timestamps commit 5acc749635c25238127867742c96d64d3259b925 at Mon 02 Jun 2025 05:30:28 PM +0545, contains 2 valid timestamp tokens.

Commit 465d3048357e23f50a1444c97bba3c5255cd146d, which timestamps commit f3e008e2f1575dd7830e47b53144d9792d6ab811 at Mon 02 Jun 2025 10:08:32 AM +0545, contains 2 valid timestamp tokens.

Commit d45f390324ce20837948771384b89aae41cf9554, which timestamps commit 42278a64ea1ef205d0484fc93d56d6c7eb81d4b3 at Wed 16 Apr 2025 10:10:58 AM +0545, contains 2 valid timestamp tokens.

Commit 866f59a61c105cd97663e796e584225ceb58ca5e, which timestamps commit 14c6c5ef0290fa6f421de46d93e45bbcb71832c6 at Tue 15 Apr 2025 11:43:48 AM +0545, contains 2 valid timestamp tokens.

Commit c352097f9952e7c3369f1034695157e073245929, which timestamps commit b5e41c60de330b471c655ca30ea01d5a27b667d7 at Tue 15 Apr 2025 10:06:31 AM +0545, contains 2 valid timestamp tokens.

Validation OK: 5 timestamped commits in the commit history of 5acfea24a8fde5b013f853621bb0c9063cb9461c contain at least one valid timestamp.

It found 5 recent timestamped commits in reverse date order.

Sample output from running on the JankariTechUG/accounting repo: ``` phil@phil-Inspiron-5468:~/git/JankariTechUG/accounting$ ~/git/JankariTechUG/GitTrustedTimestamps/hooks/validate.sh --maxcommits 5 Checking repository integrity... Repository integrity OK Validating timestamps. This may take a while... Commit 7c400ebea625dbeadbad350fa420a872b61783de, which timestamps commit 5acc749635c25238127867742c96d64d3259b925 at Mon 02 Jun 2025 05:30:28 PM +0545, contains 2 valid timestamp tokens. Commit 465d3048357e23f50a1444c97bba3c5255cd146d, which timestamps commit f3e008e2f1575dd7830e47b53144d9792d6ab811 at Mon 02 Jun 2025 10:08:32 AM +0545, contains 2 valid timestamp tokens. Commit d45f390324ce20837948771384b89aae41cf9554, which timestamps commit 42278a64ea1ef205d0484fc93d56d6c7eb81d4b3 at Wed 16 Apr 2025 10:10:58 AM +0545, contains 2 valid timestamp tokens. Commit 866f59a61c105cd97663e796e584225ceb58ca5e, which timestamps commit 14c6c5ef0290fa6f421de46d93e45bbcb71832c6 at Tue 15 Apr 2025 11:43:48 AM +0545, contains 2 valid timestamp tokens. Commit c352097f9952e7c3369f1034695157e073245929, which timestamps commit b5e41c60de330b471c655ca30ea01d5a27b667d7 at Tue 15 Apr 2025 10:06:31 AM +0545, contains 2 valid timestamp tokens. Validation OK: 5 timestamped commits in the commit history of 5acfea24a8fde5b013f853621bb0c9063cb9461c contain at least one valid timestamp. ``` It found 5 recent timestamped commits in reverse date order.
artur approved these changes 2025-06-04 03:16:17 +00:00
artur merged commit 093d283977 into main 2025-06-04 03:16:26 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JankariTechUG/GitTrustedTimestamps#12
No description provided.