GithubHelp home page GithubHelp logo

amagioss / slv-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 492 KB

Sets up the SLV CLI and helps in injecting vault secrets as masked environment variables for workflows to consume.

License: MIT License

JavaScript 100.00%
credentials credentials-helper cryptography decrypt encryption github-actions github-secrets secrets secrets-manager slv

slv-action's Introduction

โš™๏ธ slv-action

This action downloads and sets up the 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 CLI on the runner environment.

Usage

Only setup the slv CLI:

steps:
- name: Setup SLV
  uses: amagioss/slv-action@main

A specific version of the slv CLI can also be installed:

steps:
- name: Setup SLV
  uses: amagioss/slv-action@main
  with:
    version: 0.1.5

Load SLV secrets into environment variables:

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:

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-action's People

Contributors

shibme avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.