Member-only story

How to use Azure KeyVault to set custom secrets in GitHub Action’s reusable flow

Bryant Jimin Son
7 min readMar 8, 2022

--

GitHub Actions is a cloud DevOps solution offered by GitHub, which is a home to over 73 million developers where they come in to build softwares together. GitHub Actions has a concept of “pipeline,” which can be written as a YAML file format to describe different stages of DevOps or job execution process.

Now, many developers don’t just work with one pipeline. Instead, they often work with multiple pipelines where some of them are sequential. Thus, an ability to make a call from one workflow to another becomes essential. In November 29, 2022, GitHub released reusable workflow, which is exactly a solution to help with this sequential process. With GitHub Action’s reusable workflow, a programmer can finally write a pipeline to accomplish this goal. In a reusable workflow, you define a “caller” workflow and “calle” workflow, which is a reusable workflow. Previously, reusable workflow was only supported for public repos, but you can now enable reusable workflow for repositories that are set to internal visibility. The diagram below shows a sample reusable workflow.

Sample reusable workflow

Reusable workflow is a relatively new feature, so some features still leaves much to be desired. A current limitation with reusable workflow is its lack of feature to reference secrets stored in reusable workflow’s repo or org…

--

--

Bryant Jimin Son
Bryant Jimin Son

Written by Bryant Jimin Son

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.

No responses yet