Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with a git-crypt key file #12

Open
inspectorG4dget opened this issue Mar 24, 2021 · 0 comments
Open

Does not work with a git-crypt key file #12

inspectorG4dget opened this issue Mar 24, 2021 · 0 comments

Comments

@inspectorG4dget
Copy link

Steps to reproduce:

  1. Create the key file locally, using git-crypt export-key git-crypt-key
  2. 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 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant