generated from svdarren/functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copied from https://github.com/svdarren/svdarren.github.io/blob/secrets-action/.github/workflows/secrets.yml
- Loading branch information
Showing
1 changed file
with
61 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,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 | ||
|