pull_request_target

A pull request event that runs the base repository's workflow with its secrets and a write-capable token, even for pull requests from forks.

Running fork code under this event gives an anonymous contributor your secrets and repository write access.

In more detail

It exists for tasks such as labelling outside contributions. Checking out and building the pull request's head code under this event hands a stranger your secrets and write access, a privilege escalation known as a pwn request. Never check out and execute fork code under pull_request_target.

Related terms

Taught in

References

Certification courses