2022-02-07 10:49:56 +00:00
2021-11-05 21:38:28 -04:00
2022-02-07 10:49:56 +00:00
2021-11-05 21:38:28 -04:00
2021-11-05 21:38:28 -04:00
2022-02-03 13:28:24 +00:00
2022-02-03 13:28:24 +00:00
2021-11-05 21:38:28 -04:00
2021-11-05 21:38:28 -04:00
2022-02-04 10:54:54 +00:00

A plugin to detect hard-coded secrets and sensitive data in your source code files.

Building

Build the plugin binary:

scripts/build.sh

Build the plugin image:

docker build -t plugins/gitleaks -f docker/Dockerfile .

Testing

Execute the plugin from your current working directory:

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.

S
Description
No description provided
Readme 71 KiB
Languages
Go 91.7%
Shell 4.3%
Dockerfile 4%