Skip to content

Commit

Permalink
Create .woodpecker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ParasJain-dev authored Jan 10, 2020
1 parent 1d827e5 commit fdec863
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .woodpecker.yml
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 }}.

0 comments on commit fdec863

Please sign in to comment.