SpinTheMic
Pro

Interview practice question

Pull requests from forks and pipeline secrets

Cloud & DevOps · CI/CD · Intermediate

Your open-source project runs CI on pull requests from external contributors. How do you stop a malicious pull request from stealing secrets?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Fork PRs get no secrets by default.
  • Avoid running untrusted code with privileged triggers (pull_request_target).
  • Require maintainer approval to run.
  • Read-only tokens.
  • Separate privileged jobs after merge.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics