Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sliteteam/github-action-git-crypt-unlock
- Owner: sliteteam
- License: mit
- Created: 2019-02-12T10:15:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-19T13:03:11.000Z (12 months ago)
- Last Synced: 2024-10-29T12:44:57.199Z (3 months ago)
- Topics: git-crypt, github-actions
- Language: Shell
- Size: 22.5 KB
- Stars: 47
- Watchers: 7
- Forks: 23
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - Unlock git-crypt files
- fucking-awesome-actions - Unlock git-crypt files
- awesome-workflows - Unlock git-crypt files
- jimsghstars - sliteteam/github-action-git-crypt-unlock - Github Action to unlock git-crypt secrets (Shell)
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
```