Skip to content

GitHub Action to unlock git-crypt secrets

Actions
Unlock git-crypt files with a simple alpine based Docker image
1.3.0
Latest
Star (48)

Github Action running git-crypt unlock

Usage

Example Workflow file

jobs:
  deploy:
    name: Test git-crypt-unlock
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Unlock secrets
        uses: sliteteam/[email protected]
        env:
          GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }}

Secrets

  • GIT_CRYPT_KEY Required Base64 encoded git-crypt key file.
    • Get it from an unlocked git-crypt env with:
      git-crypt export-key ./tmp-key && cat ./tmp-key | base64 | pbcopy && rm ./tmp-key

Run Directory

You can run the git-crypt unlock command from a different directory besides GITHUB_WORKSPACE by setting a RUN_DIR env var.

Running tests

./test/entrypoint_test.sh

GitHub Action to unlock git-crypt secrets is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Unlock git-crypt files with a simple alpine based Docker image
1.3.0
Latest

GitHub Action to unlock git-crypt secrets is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.