-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 1.4 KB
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: Pull Request
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GO_VERSION: "1.18"
jobs:
build:
name: Checks
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Setup golangci-lint
uses: golangci/[email protected]
with:
args: --timeout=10m --verbose
version: v1.45
- name: Build
run: make build
- name: Run Unit Tests
run: make test
- name: Run Integration Tests
run: make test-integration
- name: Run Tunnel vulnerability scanner in repo mode
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'tunnel-results.sarif'
severity: 'CRITICAL'
exit-code: 0
- name: Upload Tunnel scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'tunnel-results.sarif'
- name: Run Tunnel vulnerability scanner in IaC mode
uses: aquasecurity/[email protected]
with:
scan-type: 'config'
hide-progress: false
format: 'table'