SecurityBattleOps
GithubAsked in SRE and Platform engineer rounds
GitHub pull_request_target workflow checks out the fork head SHA and runs that code with environment secrets
The scenario
A triage workflow uses pull_request_target so it can label fork pull requests, then checks out the fork head SHA and runs the fork's build script. Environment secrets are present because the event runs in the base repo. The base branch tests look healthy. The fork script has already started on a runner that can read those secrets.
Model answer
Unlock the answer interviewers want to hear
Model answer, what to add at your level, the follow-up, and common mistakes.
INTERVIEW BANK PASSNot on sale right nowEvery drill and interview experience. Renews monthly.
DEVOPS PARKInterview Bank includedInterview Bank included, plus War Zone, labs, roadmaps and Daily Challenge.See DevOps Park plans
3 questions in this drill are free.Read a free one
How to answer at your level
The follow-up they'll ask
Common mistakes