This action allows you to decrypt files that were encrypted by git-crypt. MacOS, Ubuntu/Linux and Windows are supported.
Setup your repository accordingly to git-crypt so you can encrypt your secret files.
Export your key and encoded it in base64.
git-crypt export-key ./tmp-key && cat ./tmp-key | base64 > super-secret-key-in-base64.txt
Use whatever file name you want but remember it. Open the file and copy it's content and past it in a secret variable in your target repository.
Create a new workflow .yml
file in the .github/workflows/
folder. In this new created file you have to write the following base steps in the same order.
name: Unlock your super secret content
on: push
jobs:
unlock-secrets:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: korti11/[email protected]
with:
GIT_CRYPT_KEY: ${{secrets.GIT_CRYPT_KEY}}
After the usage of git-crypt-unlock you can do with your files whatever you want.
Your key encoded in base64.