Sri Lanka has secured its biggest-ever foreign investment after signing a deal with Chinese state-run oil giant Sinopec, officials said on Thursday.