The Half-Life source code is proprietary, so there is no legal way to obtain it unless you work for Valve.
To get the game Half-Life: Source, install Steam, purchase the game for around $10, and then download and install it.