Search Function-Backed Action Tags

What is the best way to identify Ontology Actions that are using function Tags where the Tag is not on the main branch of the repository?

In a few scenarios we have issues with code branching and tagging. Branches are left open, but there are Actions in the Ontology using a Tag from that code version. In some cases it is so bad that production Actions are using Tags from branches of branches of branches that can’t be merged back into main…

I want a way to identify all Actions that are using a Tag that is not from the main branch. Ideally, in the future, we would want to incorporate this check into a pre-production solution review. An ‘easy button’ in Workflow Lineage would be the nicest.

If this exists somewhere let me know!