Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sliteteam/github-action-git-crypt-unlock

Github Action to unlock git-crypt secrets
https://github.com/sliteteam/github-action-git-crypt-unlock

git-crypt github-actions

Last synced: 2 months ago
JSON representation

Github Action to unlock git-crypt secrets

Awesome Lists containing this project

README

        

# Github Action running git-crypt unlock

## Usage

### Example Workflow file

```yaml
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:
```sh
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

```shell script
./test/entrypoint_test.sh
```