The wedding comes as a surprise for the fans as speculations of their courtship started only this month.
The couple got married on July 19 in an intimate ceremony in front of a small group of family members, reported The People magazine.
"We feel truly blessed to be joined as husband and wife... Our special day was fated and everything we could have ever asked for," the couple said in a statement.
Rivera reportedly wore a Monique Lhuillier gown and carried a bouquet of daisies as they exchanged vows.
The actress has reportedly been friends with the 'You're the Worst' star since four years. The couple apparently began dating three months after Rivera's engagement to rapper Big Sean ended in this April.