Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amagioss/slv-action
Sets up the SLV CLI and helps in injecting vault secrets as masked environment variables for workflows to consume.
https://github.com/amagioss/slv-action
credentials credentials-helper cryptography decrypt encryption github-actions github-secrets secrets secrets-manager slv
Last synced: about 12 hours ago
JSON representation
Sets up the SLV CLI and helps in injecting vault secrets as masked environment variables for workflows to consume.
- Host: GitHub
- URL: https://github.com/amagioss/slv-action
- Owner: amagioss
- License: mit
- Created: 2024-04-01T21:24:34.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T15:49:29.000Z (2 months ago)
- Last Synced: 2024-09-09T18:24:11.241Z (2 months ago)
- Topics: credentials, credentials-helper, cryptography, decrypt, encryption, github-actions, github-secrets, secrets, secrets-manager, slv
- Language: JavaScript
- Homepage:
- Size: 886 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :gear: `slv-action` ![](https://github.com/amagioss/slv-action/workflows/Tests/badge.svg)
> This action downloads and sets up the [SLV][slv] CLI and helps in injecting vault secrets as masked environment variables for workflows to consume.## About
This action can be run on `ubuntu-latest`, `windows-latest`, and `macos-latest` GitHub Actions runners, and will install and expose the specified version of the [`slv`](slv) CLI on the runner environment.## Usage
Only setup the [`slv`](slv) CLI:
```yaml
steps:
- name: Setup SLV
uses: amagioss/slv-action@main
```A specific version of the [`slv`](slv) CLI can also be installed:
```yaml
steps:
- name: Setup SLV
uses: amagioss/slv-action@main
with:
version: 0.1.5
```Load SLV secrets into environment variables:
```yaml
steps:
- name: Load SLV Secrets
uses: amagioss/slv-action@main
with:
vault: pets.slv.yml
env-secret-key: ${{ secrets.SLV_ENV_SECRET_KEY }}
```Optionally specify a prefix that will be added to the environment variables in front of the secret names:
```yaml
steps:
- name: Load SLV Secrets - PROD
uses: amagioss/slv-action@main
with:
version: 0.1.5
vault: pets.slv.yml
env-secret-key: ${{ secrets.SLV_ENV_SECRET_KEY }}
prefix: "PROD_"
```## Inputs
The actions supports the following inputs:- `version`: The version of `slv` to install, defaulting to `latest`
- `vault`: Path to the vault file
- `env-secret-key`: The SLV environment secret (key/binding) to use for the action
- `prefix`: Prefix to use for the environment variable names along with the SLV secret name[slv]: https://github.com/amagioss/slv