Skip to content

A fork repo PR permission #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GrapeBaBa opened this issue Feb 8, 2023 · 1 comment
Closed

A fork repo PR permission #478

GrapeBaBa opened this issue Feb 8, 2023 · 1 comment
Labels
type: question Further information is requested

Comments

@GrapeBaBa
Copy link

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

@GrapeBaBa GrapeBaBa added the status: pending More info is needed before deciding what to do label Feb 8, 2023
@EndBug
Copy link
Owner

EndBug commented Feb 8, 2023

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:

@EndBug EndBug added type: question Further information is requested and removed status: pending More info is needed before deciding what to do labels Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants