Skip to content

Commit

Permalink
Merge pull request #24 from moengage/ParasJain-dev-patch-2
Browse files Browse the repository at this point in the history
Create .woodpecker.yml
  • Loading branch information
shahp00ja authored Jan 10, 2020
2 parents 1d827e5 + fdec863 commit a424ef3
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 a424ef3

Please sign in to comment.