Skip to content

theotow/keyvault-secret-azure

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

typescript-action status

Keyvault secret azure

Fetches secrets from azure and exposes them to github actions.

Usage

With config

- name: 'Az CLI login'
  uses: azure/login@v1
  with:
    client-id: <fill me>
    tenant-id: <fill me>
    subscription-id: <fill me>

- uses: theotow/keyvault-secret-azure@v1
  with:
    key-vault-name: <fill me>
    config: |
      {"ENV_VARNAME": "keyvault-secret-name"}
- run: echo "${{ env.ENV_VARNAME }}"

Note: make sure you are logged in azure (with azure/login@v1 for example) before calling this action.

With environment variables

runs-on: ubuntu-latest
env:
  ENV_VARNAME: '@@ksa:keyvault-secret-name'
steps:
  - name: 'Az CLI login'
    uses: azure/login@v1
    with:
      client-id: <fill me>
      tenant-id: <fill me>
      subscription-id: <fill me>

  - uses: theotow/keyvault-secret-azure@v1
    with:
      key-vault-name: <fill me>
  - run: echo "${{ env.ENV_VARNAME }}"

Note: make sure you are logged in azure (with azure/login@v1 for example) before calling this action.

License

MIT

About

Fetches azure KeyVault secrets and stores them in env variables as secrets

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published