Shit I forgot to reply to this.
Well, it really depends. In your question, you phrased it as "could kill you and also others when revealed" but here you're phrasing it as "people would die." With that said, I'll put myself in a few situations to add nuance that I perhaps should have added in my original question.
Let's say I was alive well before the Iraq war started and I had information that would prove that the U.S. was invading Iraq on false pretenses. Given the Iraq war has killed hundreds of thousands to possibly low millions of innocent people, I think I would have to reveal the above information--even if it meant my death and the death of the people who leaked such information to me. Otherwise, hundreds of thousands would die, like they did in this timeline.
Now, let's say I was given confidential information about something that someone was planning that would result in mere monetary stealing. Let's say a mob boss is planning to steal $100,000,000 from some community--if he doesn't get the money a bomb is set to go off in town square. In this case, I wouldn't leak the information.