https://github.com/drone/drone-gitleaks
Drone Plugin for detecting credentials or other sensitive data in your repository
https://github.com/drone/drone-gitleaks
Last synced: 5 months ago
JSON representation
Drone Plugin for detecting credentials or other sensitive data in your repository
- Host: GitHub
- URL: https://github.com/drone/drone-gitleaks
- Owner: drone
- License: other
- Created: 2021-11-06T01:38:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T11:42:16.000Z (over 4 years ago)
- Last Synced: 2024-06-19T19:45:03.469Z (about 2 years ago)
- Language: Go
- Size: 30.3 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
A plugin to detect hard-coded secrets and sensitive data in your source code files.
# Building
Build the plugin binary:
```text
scripts/build.sh
```
Build the plugin image:
```text
docker build -t plugins/gitleaks -f docker/Dockerfile .
```
# Testing
Execute the plugin from your current working directory:
```text
docker run --rm \
-e DRONE_COMMIT_SHA=8f51ad7884c5eb69c11d260a31da7a745e6b78e2 \
-e DRONE_COMMIT_BRANCH=master \
-e DRONE_BUILD_NUMBER=43 \
-e DRONE_BUILD_STATUS=success \
-w /drone/src \
-v $(pwd):/drone/src \
plugins/gitleaks
```
# Developing locally
You will need to install gitleaks, and have it on your path to run the plugin in debug mode.