consuming-environment-secrets-in-reusable-workflows/ #15
Replies: 5 comments 7 replies
-
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idsecretsinherit |
Beta Was this translation helpful? Give feedback.
-
Am I right in assuming this only works if you are doing it all within a singular repository. If you try to set up an "enterprise" standard workflow that other workflows call, you can't access the secrets if its in another repository? Example: Repo C -> Repo B Repo D -> Repo B Where Repo B is the shared re-usable workflow. And I want it to have its own secrets. |
Beta Was this translation helpful? Give feedback.
-
The method in Attemp#1 is the way and only obviously way that it should "works". Both the reusable workflow and environment serves the same target use case of deploying to different target (i.e. staging and production) as examplified by it examples used on its own official documentation. Yet they don't work coherently. The very existence of this blog post is a manifest of Github's failure in product design. |
Beta Was this translation helpful? Give feedback.
-
is the same technique applicable to Environment vars / reusable inputs? callerjobs: calledon: |
Beta Was this translation helpful? Give feedback.
-
Hi Colin, I only would like to handover the STAGE and get the secrets at the reusable like:
|
Beta Was this translation helpful? Give feedback.
-
consuming-environment-secrets-in-reusable-workflows/
One canonical use of reusable workflows is a reusable deployment job. While this is definitely possible with reusable workflows, it’s not easy to get it working. In this post I’ll show you how to do it.
https://colinsalmcorner.com/consuming-environment-secrets-in-reusable-workflows/
Beta Was this translation helpful? Give feedback.
All reactions