How to get email and account name by Github action automatically

How to read user email and account name of current logged in by Github action automatically? I do not see any enviroment variables for

Not sure what you mean precisely by logged in, but ${{ github.sender.login }} is probably that.

Note that there’s no guarantee that a user has a public email address.

For instance, you don’t:

If a user does have a public email address, then that’s how one might get it, here’s a sample account that has one: