Pass credentials to automatically create a GitHub PR

I am setting up a job to automatically do some housekeeping, update a few files in the repo and automatically create a GitHub PR.
I will need to pass credentials to this job.

Any examples with this or similar would be super-helpful

Thanks
G