github.com/hernad/nomad@v1.6.112/.github/actions/vault-secrets/action.yml (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 name: vault-secrets 5 description: 'pull secrets from CI Vault into environment vars' 6 inputs: 7 paths: 8 description: 'vault-action secrets input' 9 required: true 10 runs: 11 using: composite 12 steps: 13 - name: Authenticate to Vault 14 if: endsWith(github.repository, '-enterprise') 15 id: vault-auth 16 run: vault-auth 17 shell: bash 18 - name: Retrieve Vault-hosted Secrets 19 if: endsWith(github.repository, '-enterprise') 20 id: vault 21 uses: hashicorp/vault-action@v2.4.3 22 with: 23 url: ${{ steps.vault-auth.outputs.addr }} 24 caCertificate: ${{ steps.vault-auth.outputs.ca_certificate }} 25 token: ${{ steps.vault-auth.outputs.token }} 26 secrets: ${{ inputs.paths }}