Skip to content

Commit 1aa1b51

Browse files
authored
Create secrets-scan.yml
1 parent 6f3df52 commit 1aa1b51

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/secrets-scan.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Secrets Scan
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
secrets-scan:
7+
# for private repositories
8+
runs-on: [self-hosted, automated-checks]
9+
# for public repositories
10+
# runs-on: [ubuntu-latest]
11+
12+
steps:
13+
- name: Check Out Source Code
14+
uses: actions/checkout@v2
15+
with:
16+
# By default, actions/checkout@v2 does a shallow clone with
17+
# depth 1. 0 means 'fetch the whole history'. We use it here
18+
# since we don't know how many commits a PR could have. If
19+
# you're repo is very large and cloning is slow, you could
20+
# try tweaking it to a value that the typical PR wouldn't
21+
# exceed but that also prevents getting the full history
22+
fetch-depth: 0
23+
24+
- name: Secrets Scan
25+
uses: Typeform/.github/shared-actions/secrets-scan@master
26+
with:
27+
docker-registry: ${{ secrets.GITLEAKS_DOCKER_REGISTRY }}
28+
docker-username: ${{ secrets.GITLEAKS_DOCKER_USERNAME }}
29+
docker-password: ${{ secrets.GITLEAKS_DOCKER_PASSWORD }}
30+
gh-token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)