What does `jobs.<id>.permissions` do when the workflow also has top-level `permissions`?
IntermediateConceptJobs, Steps, Matrix & Concurrency
Answer
The job-level block fully replaces the workflow-level block for that job; it does not merge. If the workflow sets contents: read and a job sets id-token: write only, that job loses contents: read and actions/checkout fails on private repos. Always restate what the job needs:
permissions:
contents: read
id-token: write
More on Jobs, Steps, Matrix & Concurrency
How does `needs` work, and what happens to a job whose dependency failed or was skipped?BeginnerWhat is the implicit `success()` in a job `if`, and why is `always()` usually the wrong fix?IntermediateWhat values can `needs.<job>.result` take?BeginnerHow does a matrix expand, and how are job names generated?BeginnerHow do `include` and `exclude` work in a matrix?IntermediateWhat do `fail-fast` and `max-parallel` do?Beginner