Interview Prep/Real-World Interview/Saying no: risk, unsafe deploys & quality

Tell me about a time you blocked a pull request.

BeginnerBehavioralSaying no: risk, unsafe deploys & quality
Answer

What they're really testing → Code review with a constructive tone.

Sample STAR answer →

  • Situation: A PR added an AWS access key and secret as plain environment variables in a GitHub Actions workflow file.
  • Task: Block it, and help the author do it right.
  • Action: I requested changes, explained the risk, and suggested OIDC with aws-actions/configure-aws-credentials and role-to-assume so no long-lived keys were needed. I linked our example workflow. I also asked the author to rotate the key since it was in Git history.
  • Result: Fixed the same day, key rotated, and we added Gitleaks to pre-commit and CI.

Avoid → A harsh "this is wrong" review with no guidance.

All Real-World Interview questions Roadmap: Interview readiness

More on Saying no: risk, unsafe deploys & quality