Honesty depends on both education and system, and neither can be neglected.
Education can make officials realize the importance of honesty and credit ideologically, and realize the losses that dishonesty brings to the party and the country, just like cleaning up the roots.
The system allows officials to act according to the rules and must not go beyond the provisions of the system, otherwise they will be punished by law. This is a strong guarantee of honesty. Without institutional constraints, honesty is also empty talk.