Skip to content

c0x12c/gh-actions-git-crypt-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-actions-git-crypt-action

A fork of amplium/git-crypt-action with some enhancements as follows:

  • Run git stash before locking the repository in post.sh.
  • Add -a argument to git lock in post.sh to lock all keys.

git-crypt-action speeds up and simplifies using git-crypt inside your GitHub Action workflows by downloading a pre-built docker image and unlocking your repository. This has the benefit of being faster than having to apt-get install git-crypt. It also takes care of re-locking the repository before finishing your workflow.

To use this workflow, export your key and encode it with base64, then register it as a GitHub Secret.

❯ git-crypt export-key -- - | base64

Finally, use it in your workflow.

jobs:
  some_job:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: c0x12c/[email protected]
        with:
          key_encoded: ${{ secrets.KEY }}

About

GitHub action to unlock a Git repository

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 90.9%
  • Dockerfile 9.1%