自分のしたことを

what one did

→ 自分
phrase Rare #26,511
what one did 自分のしたこと means “what one did” or “one’s actions.” The を marks it as the object of a following verb, such as 白状した (confessed) or 後悔している (regrets).
JA: 彼女は自分のしたことを謝った。
EN: She apologized for what she did.

自分のしたことをよく考えなさい

Think carefully about what you’ve done.

私は自分のしたことを悪かったと思わない

I don't think what I did was wrong.

その男はついに自分のしたことを白状した

The man finally confessed to what he had done.

自分のしたことを認めるんだデイブ

Admit what you did, Dave.

— ミスティック・リバー (2003)