Docker and CI/CD · Middle · Question 38 of 75

Why don't workflows triggered by pull_request from forks get repository secrets?

Explanation

Anyone can open a PR that changes the workflow or test code. pull_request_target runs with secrets, which is why checking out PR code there is dangerous.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 38

Test yourself

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

Take this quiz