What does `secrets: inherit` do, and when should you avoid it?
IntermediateConceptCustom Actions & Reusable Workflows
Answer
It passes all secrets the caller can access (repo and org) to the called workflow, without listing them. Convenient within one repo or a trusted org. Avoid it when calling a workflow owned by another team or a third party, since it hands over every secret including unrelated ones. Pass named secrets explicitly instead, so the interface is documented and minimal. inherit works only within the same org or enterprise.
More on Custom Actions & Reusable Workflows
What are the three kinds of custom action and how do you choose?BeginnerWrite a minimal composite action that installs Node and dependencies with caching.IntermediateWhat can a composite action not do compared to a job?IntermediateHow do you pass outputs out of a composite action?IntermediateWhat does `action.yml` contain for a JavaScript action?IntermediateWhy must a JavaScript action commit its `dist/` or `node_modules`?Intermediate