Which wire do I attach to what when installing a light fixture?
One hot yellow wire

Your wiring is likely in conduit, hence the yellow hot wire.  Turn the circuit off at the breaker, then connect yellow to both blacks, white to both whites, and green to the bare ground.  Button things back up, turn the breaker back on, and enjoy your new light fixture!