In any action against any officer for the refund of taxes or other action involving the revenue laws, the Attorney General or the district attorney may, at his direction, if in his opinion the best interests of the state require it, with or without the consent of such officer appear for him and shall be authorized to take an appeal, and no bond or security for costs shall be required.