https://github.com/tomerh2001/git-crypt-pipe
Decrypts git-crypt encrypted repositories in Bitbucket Pipelines.
https://github.com/tomerh2001/git-crypt-pipe
bitbucket bitbucket-pipeline cryptography git git-crypt pipe
Last synced: 11 months ago
JSON representation
Decrypts git-crypt encrypted repositories in Bitbucket Pipelines.
- Host: GitHub
- URL: https://github.com/tomerh2001/git-crypt-pipe
- Owner: tomerh2001
- License: mit
- Created: 2023-09-30T16:16:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T06:49:29.000Z (12 months ago)
- Last Synced: 2025-02-28T19:53:37.824Z (11 months ago)
- Topics: bitbucket, bitbucket-pipeline, cryptography, git, git-crypt, pipe
- Language: Shell
- Homepage:
- Size: 428 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Bitbucket Git Crypt Pipe
[](https://github.com/semantic-release/semantic-release)
[](https://github.com/xojs/xo)
[](../../actions/workflows/snyk-security.yml)
[](../../actions/workflows/codeql.yml)
[](https://securityscorecards.dev/viewer/?uri=github.com/tomerh2001/git-crypt-pipe)
Decrypts `git-crypt` encrypted repositories in Bitbucket Pipelines.
## YAML Definition
Add the following snippet to the script section of your `bitbucket-pipelines.yml` file:
```yaml
script:
- pipe: docker://tomerh2001/git-crypt-pipe:latest
variables:
SECRETS_KEY: $SECRETS_KEY
```
## Variables
| Name | Usage | Type |
|--------------|----------------------------------------------|----------|
| `SECRETS_KEY`| The base64 encoded git-crypt key. | Mandatory|
## Details
This pipe is built to help you decrypt files in your git repository encrypted using `git-crypt` during a Bitbucket Pipeline run. Ensure that you have `git-crypt` setup properly in your repository before using this pipe.
## Prerequisites
- You must have your repository encrypted with `git-crypt`.
- A base64 encoded `git-crypt` key stored in your Bitbucket Pipelines environment variables as `SECRETS_KEY`.