EndBug/add-and-commit

A fork repo PR permission

GrapeBaBa opened this issue · 1 comments

A similar issue like #369 , can a PR from a fork user got permission? https://github.com/GrapeBaBa/sui4j/actions/runs/4114786329/jobs/7114924387

If you're using the pull_request event, the workflow will run in the fork context, without access to your own repo.
If you want to push to your repo you'll have to run the workflow using the pull_request_target event, so that it runs the code in your own repo, and then checkout the other repo's branch.
Keep in mind that you might not have the permissions to push to that fork.

Further reading: