Skip to content

xtoledo99/github-action-git-crypt-unlock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action running git-crypt unlock

Usage

Example Workflow file

workflow "Test git-crypt" {
  on = "push"
  resolves = ["Unlock secrets"]
}

action "Unlock secrets" {
  uses="sliteteam/github-action-git-crypt-unlock@master"
  secrets=["GIT_CRYPT_KEY"]
}

Secrets

  • GIT_CRYPT_KEY Required Base64 encoded git-crypt key file.
    • Get it from an unlocked git-crypt env with:
      git-crypt export-key ./tmp-key && cat ./tmp-key | base64 | pbcopy && rm ./tmp-key

Development

There are few dependencies

  • git-crypt
  • docker
  • node (for npm script convenience and gha dependency)

Running tests

npm install
npm test

About

Github Action to unlock git-crypt secrets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 87.2%
  • Shell 12.8%