compliance: Add support for checking singular commit (#54369)

This helps with two things: Testing changes locally against real commits
as well as laying the groundwork for making things less convoluted for
the GitHub worker.

Also removes some useless wrapping left from an earlier direction.

Release Notes:

- N/A
d4849ccda1Finn Evers committed on 4/21/2026, 10:44:32 AM· committed by GitHubparentf2f9e27
7 files changedLine totals unavailable