Skip to content

Commit

Permalink
paste secret scanner workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
svdarren authored Dec 24, 2019
1 parent e905b03 commit c39baef
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Scan for Secrets
on: [push]

jobs:
trufflehog:
name: Scan with TruffleHog
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# @todo port trufflehog parameters to new call
- uses: max/[email protected]
- uses: edplato/[email protected]

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install truffleHog
- run: trufflehog $GITHUB_WORKSPACE

gitleak:
name: Scan with GitLeak
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Go v1
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Install dependencies
# @todo should this 'go get' be removed?
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
go get -u github.com/zricethezav/gitleaks
# @todo command is failing
- run: go run gitleaks -v --exclude-forks --redact --threads=1 --branch=$GITHUB_REF --repo-path=$GITHUB_WORKSPACE

# @todo port gitleaks parameters to new call
- uses: eshork/[email protected]
# uses: CySeq/gitcret@v2

seekret:
name: Scan with Seekret
runs-on: [ubuntu-latest]
steps:
# @todo implement a seekret call
- run: echo "hello world"
# https://github.com/cds-snc/github-actions/tree/master/seekret

0 comments on commit c39baef

Please sign in to comment.