Interview Q&A · questions with model answers
GitHub Actions Fundamentals Interview Questions
Part of the study plan for: DevOps Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Why should you pin third-party actions to a commit SHA?
Tags such as @v3 can be moved by the action's owner or an attacker who compromises the repository, so your workflow would run new, unreviewed code with access to your secrets and token. A full…
-
What are the security risks of pull_request_target and self-hosted runners?
pull_request_target runs in the context of the base repository with secrets and a write token; if it checks out and runs code from the pull request, an attacker's fork can steal secrets. Self-hosted…