Action Version Pinning Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Implement Security Best Practices

What you'll be asked

  1. What is the primary security risk associated with using a mutable tag like 'v1' for a GitHub Action?
  2. Which of the following is considered the most secure method for referencing a GitHub Action in a workflow file?
  3. When using a semantic version (e.g., 'v1.2.3') for an action, what is the main trade-off compared to using a full commit SHA?
  4. If you are using a third-party action that does not provide commit SHAs in their documentation, what is the recommended best practice to ensure security?
  5. You are auditing a workflow and find an action pinned to a SHA. You notice that the SHA does not exist in the upstream repository's commit history. What is the most likely scenario?

Answers and explanations come after you submit.