Take an oath

To make an oath, to swear to something.

I had to take an oath before I could answer questions at the public hearing.