The Vault website is being redesigned to help you find what you are looking for more effectively.Join the Beta
»GitHub Actions
Workflows in GitHub Actions can make use of secrets stored in Vault by using a
vault-action
step.
»Example
Here is an example vault-action
step in a workflow:
This example will authenticate to Vault instance at https://vault.example.com:8200
with the GitHub secrets defined in
VAULT_TOKEN
and VAULT_CA_CERT
, and will add environment variables available for next steps in the workflow:
- The secret at path
secret/data/ci/aws
with the keyaccessKey
available in the environment variableAWS_ACCESS_KEY_ID
- The secret at path
secret/data/ci/aws
with the keysecretKey
available in the environment variableAWS_SECRET_ACCESS_KEY
- The secret at path
secret/data/ci
with the keynpm_token
available in the environment variableNPM_TOKEN
»Further Information
For more information on using the vault-action
GitHub Action, visit: