GitHub Actions Fundamentals interview question

How does the GITHUB_TOKEN work, and how do you limit its permissions?

How it works Asked in DevOps Engineer interviews

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

Summary

GitHub creates a GITHUB_TOKEN for each workflow run, scoped to the repository and valid only while the job runs. Its permissions come from the repository or organisation default and the workflow's permissions: block; set the default to read-only and grant write scopes per job only where needed.

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