Did You Hear What I Said?

Is sin actions or thoughts or both?