Skip to content

Github Action cloning parent of fork repository when initiated from child fork #27057

Answered by Simran-B
mishraprafful asked this question in Actions
Discussion options

You must be logged in to vote

Can you share the workflow code and describe the setup in more detail? This is too little information to help.

[…] has default work directory as the remote parent fork repository

This sounds like you might use pull_request_target which will checkout the base branch instead of the head branch for security reasons (to prevent arbitrary users to be able to modify your workflow to leak secrets).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants