sliteteam / github-action-git-crypt-unlock

Github Action to unlock git-crypt secrets
MIT License
47 stars 23 forks source link

This doesn't work on mac #11

Closed long1eu closed 3 years ago

alexcroox commented 3 years ago

Did anyone find a solution to running on macos containers?

long1eu commented 3 years ago

Yes, you do brew install git-crypt and you're good to go.

alexcroox commented 3 years ago

For anyone else landing here this was my solution until this action supports macos:

- name: Install & unlock git-crypt
        run: |
          which git-crypt || brew install git-crypt
          echo "${{ secrets.GIT_CRYPT_KEY }}" | base64  -d > ./production.env.key
          git-crypt unlock ./production.env.key
          rm ./production.env.key

(which is basically what this action does)