Inherit secret and pass specific secret to reusable workflow #3572
Unanswered
nvincent-vossloh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a reusable workflow (hosted in an internal repository in my org, with other reusables and composites actions) which takes a secret as input in order to download the repository from the caller's workflow. Please note that this secret is not
GITHUB_TOKEN
but a token from a github app in order to be able to download other repositories later.Now, in my reusable workflow, I wish to download the repository hosting the reusable in order to call one of the composite at the reference at which the reusable was called. However the secret passed initially is not sufficient because it was made for the caller. So I made another github app which can access the content of my repository containing my reusables and composites, this github app is installed on every repository and the secret key and app id are stored at the org level.
My reusable workflow reference that secret from the organization's secret and not from one of the secret input of the reusable workflow.
What I now struggle with, is that I wish the reusable workflow to inherit the secret by setting
secret: inherit
in the caller, and specify the secret input needed to download the caller's repository.Here is a simplified version of the various pieces:
reusable.yml
caller.yml
:In the caller workflow I cannot inherit (
ORG_ACTIONS_WORKFLOW_APP_PRIVATE_KEY
and specify secrets (access-token
)Beta Was this translation helpful? Give feedback.
All reactions