https://github.com/minddocdev/vault-action
Github action that manages Vault secrets
https://github.com/minddocdev/vault-action
github-actions
Last synced: 12 months ago
JSON representation
Github action that manages Vault secrets
- Host: GitHub
- URL: https://github.com/minddocdev/vault-action
- Owner: minddocdev
- License: mit
- Created: 2019-12-20T18:14:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T20:23:14.000Z (over 2 years ago)
- Last Synced: 2025-02-18T20:20:02.141Z (about 1 year ago)
- Topics: github-actions
- Language: JavaScript
- Size: 19.2 MB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vault Action
Install the dependencies
```bash
yarn install
```
Build the typescript
```bash
yarn build
```
Run the tests :heavy_check_mark:
```bash
yarn test
```
## Usage
Import vault secrets with the KV2 engine and Github authentication.
Secrets can be loaded as environment variables with the `env` key, or can be
stored as a file with the `file` config.
```yaml
- name: Import Secrets
uses: minddocdev/vault-action@v1
with:
url: https://vault.mycompany.fake
token: ${{ secrets.GITHUB_TOKEN }}
secrets: |
- path: mygroup1/mygroup2
key: mykey1
env: MY_KEY
- path: mygroup1/mygroup2
key: mykey2
file: mypath/myfile.txt
secretsEngine: |
name: kv
config:
path: /secret
version: 2
```