Skip to content

Commit d9ebd84

Browse files
authored
Merge pull request #43 from geostorm-ai/feature/trufflehog-secret-scanning
Add TruffleHog secret scanning to CI
2 parents 20c67af + 6283289 commit d9ebd84

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/checks.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,23 @@ jobs:
4545
cache-from: type=gha
4646
cache-to: type=gha,mode=max
4747

48+
secret-scanning:
49+
name: Scan for secrets
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
with:
54+
fetch-depth: 0
55+
56+
- name: Pull trufflehog Docker image
57+
run: docker pull ghcr.io/trufflesecurity/trufflehog:latest
58+
59+
- name: Run trufflehog scan
60+
run: docker run --rm -v "$PWD:/repo" ghcr.io/trufflesecurity/trufflehog:latest git file:///repo --fail --no-update
61+
4862
all-checks-passed:
4963
if: always()
50-
needs: [python, frontend, docker]
64+
needs: [python, frontend, docker, secret-scanning]
5165
runs-on: ubuntu-latest
5266
steps:
5367
- run: |

0 commit comments

Comments
 (0)