LOS ANGELES — California could be on the verge of cracking open a closely guarded secret: how much your co-workers make.

A state lawmaker’s proposal would publicize the pay scales at thousands of companies and temp agencies nationwide, requiring large businesses to report breakdowns by gender, race and ethnicity — data the state would then post online.