There are several ways. If the environment variables GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL are set, Git will use those. Also, you can pass the --author argument to git commit as per the documentation:
--author=<author>- Override the commit author. Specify an explicit author using the standard
A U Thor <[email protected]> format. Otherwise <author> is assumed to be a pattern and is used to search for an existing commit by that author (i.e. rev-list --all -i --author=<author>); the commit author is then copied from the first such commit found.
However, you don't actually need to do anything because git cherry-pick already does that automatically.