GitHub Actions Fundamentals interview question

What are the security risks of pull_request_target and self-hosted runners?

Why Asked in DevOps Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

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 runners on public repositories let anyone who opens a pull request run code on your machine, and persistent runners can be tampered with between jobs.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More GitHub Actions Fundamentals questions

← All GitHub Actions Fundamentals questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake