Menu

secrets: inherit not working in reusable workflows
📰

secrets: inherit not working in reusable workflows

DEV Community: cicd·Kay·about 2 hours ago
#8dmWRMhb
#devtocicd#devto#dev#secrets#workflow
Reading 0:00
15s threshold

secrets: inherit not working in reusable workflows is two different failures wearing one name, and only one of them prints anything. Either the run is rejected before a job starts, which is loud and precise, or the called workflow reads an empty string and fails later on whatever it tried to authenticate to.

Inheritance is per hop, not per chain. Quoted from GitHub's reuse-workflows guide: "Secrets are only passed to directly called workflow".

What this error means

Start by asking whether any job ran at all. If the run has zero jobs and a startup failure, GitHub rejected the workflow before scheduling it, and the message names the secret and the side it is missing from. That is the loud shape, and it is what you get from explicit forwarding, never from inherit .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.