The government will act on any report or resolution by the royal commission of inquiry (RCI) on illegal immigrants in Sabah, said attorney-general Abdul Gani Patail.