File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : [main]
65 pull_request :
7- branches : [main]
86
97jobs :
108 golangci :
3735 run : |
3836 go test -race $(go list ./...) -v -coverprofile=.coverage.out
3937 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 }}
4055 integration-tests :
4156 name : Integration Tests
4257 runs-on : ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments