This is a setting in the repository where you want to do the translation.
Permissions Settings > Actions > General
- Enable
Read and write permissions - Enable
Allow GitHub Actions to create and approve pull requests
Secrets Settings > Secrets and variables > Actions
Set your OpenAI API key as OPENAI_API_KEY to secrets
