Docker and CI/CD · Senior · Question 31 of 75

Why is pull_request_target with a checkout of the PR's code dangerous?

Explanation

The event runs in the base repo context for labeling and commenting. Building the PR's code there lets an attacker's postinstall steal secrets: a classic "pwn request".

Further reading

Problem with a question

Docker and CI/CD · Senior · question 31

Test yourself

Take the Docker and CI/CD · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz