Added repository integrity restoration to build