cover your ass
US /ˈkʌvər jʊər æs/
UK /ˈkʌvər jʊər æs/

1.
to protect oneself from being blamed or criticized, especially by taking precautions or making excuses
:
•
He always keeps detailed records to cover his ass in case of an audit.
•
Make sure you get everything in writing to cover your ass.