-
Notifications
You must be signed in to change notification settings - Fork 3
/
.woodpecker.yml
24 lines (22 loc) · 965 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
pipeline:
download:
image: docker
commands:
- docker pull 612427630422.dkr.ecr.us-east-1.amazonaws.com/sre/moe-trufflehog
- docker pull 612427630422.dkr.ecr.us-east-1.amazonaws.com/sre/checkov
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/ec2-user/.docker:/root/.docker
secret-checker:
image: 612427630422.dkr.ecr.us-east-1.amazonaws.com/sre/moe-trufflehog
commands:
- python /moe-truffleHog/truffleHog/truffleHog.py --regex --rules /moe-truffleHog/rules.json --max_depth 1 --branch "${DRONE_BRANCH}" "https://github.com/${DRONE_REPO}.git" --entropy true
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 }}.