Skip to content

How to inherit secrets when reusing workflows in Github Actions #23107

Discussion options

You must be logged in to vote

The first one doesn’t work because you’re trying to call the reusable workflow in a step, which isn’t possible (that’s for custom actions). A reusable workflow must be called at the job level.

Point three under Using inputs and secrets in a reusable workflow has an example. I notice it also says there:

Workflows that call reusable workflows in the same organization or enterprise can use the inherit keyword to implicitly pass the secrets.

I hope that doesn’t mean you can’t use that for workflows owned by the same personal account. 🤔

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ssbarnea
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jsoref
Comment options

@ffisc
Comment options

@jsoref
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants