It is called "leaking".
a leak
They can say that the information is secret and can limit press coverage.
gatekeeping
If government officials tell lies, hold secret meetings, or try to limit reporters' access to information in other ways, the media may not be able to provide the information citizens need.
What is it called when the media get to decide what information the public will be given
secret.....
Mass Media
The print media has been called the "fourth estate" due to its role as an important pillar of democracy, providing information and holding governments accountable. Media outlets have the responsibility to provide accurate and unbiased information to the public to ensure an informed citizenry.
Media share news and information with the people
Media is a source of information and can be very useful.
The media certainly are a source of information; whether any given viewer of the media can make sense of that information really depends upon the individual.
A whistle blower is a person who divulges internal, often secret, information to outsiders such as media or law enforcement, in order to expose corruption or other illegal activity.