As an adult, the only risks for HIV are:
1) having unprotected, penetrative vaginal or anal sex, or
2) sharing IV drug needles with other IV drug users.
You had NO RISK for HIV. The transmission of HIV, sexually, requires penetration - that an unprotected penis be inside a vagina or anus. The sore inside your lip is irrelevant.