-
Notifications
You must be signed in to change notification settings - Fork 17
executable file
·68 lines (57 loc) · 1.56 KB
/
vmware-go-kcl-v2-ci.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
63
64
65
66
67
68
name: vmware-go-kcl-v2
on:
push:
branches: [ main ]
paths-ignore: [ README.md ]
pull_request:
branches: [ main ]
paths-ignore: [ README.md ]
jobs:
build:
name: Continous Integration
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
id: go
- name: Build
shell: bash
run: |
make build
- name: Test
shell: bash
run: |
make test
scans:
name: Checks, Lints and Scans
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
id: go
- name: Format Check
shell: bash
run: |
make format-check
- name: Lint
shell: bash
run: |
make lint-docker
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
# let the report trigger content trigger a failure using the GitHub Security features.
args: '-no-fail -fmt sarif -out results.sarif -exclude-dir internal -exclude-dir vendor -severity high ./...'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
# path to SARIF file relative to the root of the repository
sarif_file: results.sarif