Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.25 KB

README.md

File metadata and controls

55 lines (42 loc) · 1.25 KB

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