Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
/ secrets Public archive

Github action for fetching secrets from AWS Secrets Manager and print them to .txt files for each key in that secret.

Notifications You must be signed in to change notification settings

Springworks/secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secrets

Github action for fetching secrets from AWS Secrets Manager and print them to .txt files for each key in that secret.

The file(s) will be stored in the job working directory in this format:

SECRET_<key>.txt

AWS credentials and region are needed as always.

Inputs

secret-name

Required The Name of secret to get from AWS Secrets Manager.

Example usage

- name: Get secrets
  uses: springworks/secrets@master
  with:
    secret-name: 'github-actions-secrets'
  env:
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    AWS_REGION: 'eu-west-1'    

Example result

Files generated in working directory:

<job-working-dir>
  |- SECRET_NPM_TOKEN.txt
  |- SECRET_SOMETHING_VERY_SECRET.txt
  |- SECRET_SOMETHING_EXTREMELY_SECRET.txt

About

Github action for fetching secrets from AWS Secrets Manager and print them to .txt files for each key in that secret.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published