File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 46
46
else
47
47
bash -c "yarn test"
48
48
fi
49
+
50
+ scanning :
51
+ name : GitGuardian scan
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - name : Checkout
55
+ uses : actions/checkout@v4
56
+ with :
57
+ fetch-depth : 0 # fetch all history so multiple commits can be scanned
58
+ - name : GitGuardian scan
59
+ uses : GitGuardian/ggshield-action@v1
60
+ env :
61
+ GITHUB_PUSH_BEFORE_SHA : ${{ github.event.before }}
62
+ GITHUB_PUSH_BASE_SHA : ${{ github.event.base }}
63
+ GITHUB_DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
64
+ GITGUARDIAN_API_KEY : ${{ secrets.GITGUARDIAN_API_KEY }}
Original file line number Diff line number Diff line change @@ -28,3 +28,10 @@ repos:
28
28
hooks :
29
29
- id : codespell
30
30
exclude : ^(ggshield-internal)
31
+
32
+ - repo : https://github.com/gitguardian/ggshield
33
+ rev : v1.36.0
34
+ hooks :
35
+ - id : ggshield
36
+ language_version : python3
37
+ stages : [pre-commit]
You can’t perform that action at this time.
0 commit comments