File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on :
4
4
push :
5
- branches : [main]
6
5
pull_request :
7
- branches : [main]
8
6
9
7
jobs :
10
8
golangci :
37
35
run : |
38
36
go test -race $(go list ./...) -v -coverprofile=.coverage.out
39
37
go tool cover -func=.coverage.out
38
+ ggshield :
39
+ name : Scan code with ggshield
40
+ runs-on : ubuntu-latest
41
+ if : github.event_name == 'push'
42
+ steps :
43
+ - name : Checkout
44
+ uses : actions/checkout@v2
45
+ with :
46
+ fetch-depth : 0 # fetch all history so multiple commits can be scanned
47
+ - name : Scan code with ggshield
48
+ uses : GitGuardian/ggshield-action@master
49
+ env :
50
+ GITHUB_PUSH_BEFORE_SHA : ${{ github.event.before }}
51
+ GITHUB_PUSH_BASE_SHA : ${{ github.event.base }}
52
+ GITHUB_PULL_BASE_SHA : ${{ github.event.pull_request.base.sha }}
53
+ GITHUB_DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
54
+ GITGUARDIAN_API_KEY : ${{ secrets.GITGUARDIAN_API_KEY }}
40
55
integration-tests :
41
56
name : Integration Tests
42
57
runs-on : ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments