R2-D2 ain’t a snitch. He knew Anakin was Vader, pretended not to know who Yoda and Obi Wan were, and shut himself down when
Luke didn’t want to be found. No wonder he was trusted with the Death Star plans. R2 is the ultimate ride or die droid.