(CNN) A Chinese woman found guilty of trespassing at President Donald Trump's Mar-a-Lago resort was sentenced to eight months in prison, but will leave custody in five days due to the amount of time she has already served.

Yujing Zhang, a 33-year-old businesswoman from Shanghai, faced up to six years in prison after she was found guilty in September of unlawfully entering a restricted zone and making false statements to a federal officer. Deemed a flight risk, she has remained in custody while awaiting sentencing. She has been in custody since March 30, meaning she's already served most of her sentence, according to the judge.

Zhang was also sentenced to two years of supervised release and a $125 fine. She must also surrender to immigration services for removal from the country. She has 14 days to appeal the ruling.

Zhang was arrested on March 30 on the grounds of Trump's Florida resort and charged two days later. Trump was not on the property at the time of the incident, but the breach called into question the security at Mar-a-Lago, a semi-public location where Trump sometimes conducts official White House business.

Zhang had told a first ring of security that she was there that afternoon to use the pool. To a second Secret Service agent minutes later, she showed an invitation in Chinese to a "United Nations Friendship Event." And in an interview at the Secret Service satellite office nearby, she gave a third reason: She'd been sent by a Chinese friend, "Charles," to attend the event and "attempt to speak with a member of the President's family about Chinese and American foreign economic relations."

Read More