In github actions how should I checkout code from private forks for running actions

hi,

I have seen some similar older posts but still unable to figure out the correct solution.

We have a private repository (at org level) which has actions in it that performs a checkout and runs a security scan / unit tests when a PR is created. while the actions run fine when the PRs are from branches in the same repo, it does not work when the PR is from a forked repo (private fork that is).

Is it possible to checkout the code from the private fork PR when running the actions ?

Hi there;

Please check these links, so I think you will find what you looking for:

Best