The story you've heard is pure baloney, historical revisionism designed to cover the asses of those who screwed up, royally.
What *actually* happened was the Executive VP of Engineering, Weapons Division accidentally invited a Rebel commander to a private group chat, and then posted the plans for the Death Star to the group.