I have a new home built this year. Made a workbench in the basement. There are no outlets in this half of the basement.
I mounted a metal outlet bar on the front of the bench, wired house wire (3 wire) to bar black to black, white to white and ground to ground. Ran wire to ceiling light which was a plastic box and plastic light bulb fixture. when I took apart the black was to black, white was to white, 3 wires each my wire the house wire and the light fixture wire.
Here's the part I'm confused on. The ground from the house was capped off and not connected. I connected the ground from my wiring from the plug bar to that ground and all worked fine but as an amateur I wasn't sure it was correct and safe so I took it apart. Was this correct?