github-action-git-crypt-unlock
github-action-git-crypt-unlock copied to clipboard
Does not work with a git-crypt key file
Steps to reproduce:
- Create the key file locally, using
git-crypt export-key git-crypt-key
- Stash this key in an S3 bucket or other remote location of choice
This works:
steps:
- ...
- name: git-crypt unlock
run: |
git clone https://github.com/AGWA/git-crypt.git
cd git-crypt
make
sudo make install
cd ..
rm -rf git-crypt
git-crypt unlock git-crypt-key
This does not work
steps:
- name: Set git-crypt key
id: ref
run: echo "::set-output name=git_crypt_key::$(base64 git-crypt-key)" # or cat git-crypt-key | base64
- name: decrypt
uses: sliteteam/[email protected]
env:
GIT_CRYPT_KEY: ${{ steps.ref.outputs.git_crypt_key }}