Pauley Perrette happy to be at church following violent attack

Pauley Perrette showed up for church Sunday morning, just days after being assaulted by a "psychotic homeless man."

An eyewitness at the Hollywood United Methodist Church told ET that the "NCIS" star was in "good spirits" as she attended the service with her police friend Nicole, who was with her following the attack, and her pal James, who helped track down the man police arrested.

The pastor called attention to Perrette's traumatic event during his sermon.

"Even though this man was punching her and threatening her life, Pauley prayed for her safety and for him," the pastor told the congregation. "One, she was able to pull the strings of God's love for each of us ...and was able to ask his name, then connect with him on a human level and say, 'Your name is William?' That's my sweet nephew's name too. When Pauley was telling her story to the media on Friday, first by proclaiming herself as a person of faith. ...Second, she proclaimed her forgiveness for the man who assaulted her. And third, she not only called attention to the critical need for mental health services in our country but especially here in Hollywood."