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

Why pin third-party actions to a full commit SHA rather than @v3?

Explanation

If an action's repository is compromised, the attacker can retag v3. Pinning to a SHA (with Dependabot updating it) prevents that.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 42

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