OPA Policy Integration - help?

Whilst looking at ways to add extra security/validation I noticed this PR on integrating with OPA.

Is there any additional information on how you go about actually enabling this for our own pipelines?
Because while looking at the code I’m still finding it difficult to tell how I’m supposed to use this feature.
Any help would be appreciated.