CI/CDCoreOps
GithubAsked in DevOps engineer and SRE rounds
GitHub Actions fork pull request cannot read secrets, so the workflow trigger is switched to pull_request_target
The scenario
Fork pull requests from outside contributors fail when CI tries to read a private test fixture secret. The base-branch workflow on pull_request is healthy for employees. A change switches the trigger to pull_request_target so the fork event can see GitHub Actions secrets. The checkout step still uses the default base ref, and the queue of external PRs is now green.
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