Your employer may not retaliate against you for opposing discrimination or harassment, and this includes being a witness in an internal investigation, an agency investigation, or even a lawsuit. Whether your information hurts or helps your employer, and whether you voluntarily come forward or you are subpoenaed to provide testimony, you are protected from retaliation. For more information, see Nolo's article Workplace Retaliation: What Are Your Rights?