Do you think this is ok?

If you and your best friend work at the same job, and she starts keeping secrets from you in the work place is she a bad friend? These secrets were very important and sad to say could have risked everyone’s job today if I didn’t find out. I feel honestly betrayed because we tell each other everything. Should I not trust her as much anymore!?