-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d827e5
commit fdec863
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
pipeline: | ||
download: | ||
image: docker:git | ||
commands: | ||
- git clone https://github.com/moengage/moe-truffleHog.git --branch dev | ||
|
||
secret-checker: | ||
image: python:2.7-alpine | ||
commands: | ||
- apk add --no-cache git | ||
- echo $DRONE_SOURCE_BRANCH | ||
- echo $DRONE_REPO | ||
- cd moe-truffleHog | ||
- git branch | ||
- pip install -r requirements.txt | ||
- python truffleHog/truffleHog.py --regex --rules rules.json --max_depth 1 --branch $DRONE_BRANCH "https://github.com/$DRONE_REPO.git" --entropy true | ||
- echo "No tokens Found" | ||
notify_to_slack: | ||
image: plugins/slack | ||
when: | ||
status: [ failure ] | ||
secrets: [ SLACK_WEBHOOK ] | ||
settings: | ||
template: > | ||
{{repo.name}} ({{build.branch}}) <{{ build.link }}|{{ repo.owner }}/{{ repo.name }}#{{truncate build.commit 8}}> build failed. Tokens Found, Please remove tokens {{ build.author }}. |