compliance: Make trait more flexible (#53914)

This will make this easier to use with the GitHub worker.

Release Notes:

- N/A
d367d3fbbcFinn Evers committed on 4/14/2026, 9:25:49 PM· committed by GitHubparent652f1fa
3 files changedLine totals unavailable