Interview Prep/GitHub Actions/Secrets, Variables, Environments & Permissions

What does `permissions: {}` do, and `permissions: read-all`?

BeginnerConceptSecrets, Variables, Environments & Permissions
Answer

permissions: {} grants nothing (not even contents: read), so the token is useless except for public reads; good default for jobs that only lint public code or call external APIs. read-all grants read on every scope, write-all grants write on every scope. In a public repo, permissions: {} at the top with per-job grants is the tightest posture.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, Variables, Environments & Permissions