Skip to content
unlock

GitHub Action

Unlock Git-Crypt secrets

v0.1.5 Latest version

Unlock Git-Crypt secrets

unlock

Unlock Git-Crypt secrets

Unlock git-crypt files with a minimal alpine based Docker image

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Unlock Git-Crypt secrets

uses: amplium/[email protected]

Learn more about this action in amplium/git-crypt-action

Choose a version

git-crypt action - transparent file encryption for GitHub Actions

git-crypt-action speeds up and simplifies using git-crypt inside your GitHub Action workflows by downloading a pre-built docker image and unlocking your repository. This has the benefit of being faster than having to apt-get install git-crypt. It also takes care of re-locking the repository before finishing your workflow.

To use this workflow, export your key and encode it with base64, then register it as a GitHub Secret.

❯ git-crypt export-key -- - | base64

Finally, use it in your workflow.

jobs:
  some_job:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: amplium/git-crypt-action@master
        with:
          key_encoded: ${{ secrets.KEY }}