The pull_request_target trap in GitHub Actions

No unsafe pull_request_target workflow · actions.pull_request_target

Why it matters

pull_request_target runs with the repository secrets. Checking out and running the pull request’s code there hands those secrets to anyone who opens a pull request.

How to fix it

Does your repository pass this check?

Free for public GitHub repositories, no account needed. 50+ DevOps and security checks in about ten seconds.

Related checks