In the film Don't Loot Up, a pair of astronomers discover an asteroid on a collision course with Earth. After checking their conclusions, they pass the information to government authorities who order them to remain silent. While word does eventually get out, it's only because the astronomers leak their results, not because the government decides to share the data.
To someone outside astronomy, this might seem plausible. Obviously, the government would want to cover up information