Usage patterns
〈事〉を非公開にするto make something non-public/private
The company made the meeting private.
非公開の〈事〉non-public ~ (data, information, etc.)
Non-public data can't be viewed by the general public.
〈事〉が非公開になるfor something to become non-public/closed
The trial was closed to the public.