Docker and CI/CD · Junior · Question 46 of 75
What does the step uses: actions/checkout@v4 do?
- 1Switches the repository to the default branch
- ✓Correct answer: Clones the repository into the runner's workspace
- 3Checks that every commit message is well formatted
Explanation
Runners start empty, so most workflows check out the code first. By default it's a shallow clone with only the triggering commit.