-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.86 KB
/
lint.yaml
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: Linting
on:
push:
jobs:
golangci:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- uses: goplugin/[email protected]
id: go-version
- run: echo ${{ steps.go-version.outputs.golang_version }}
- name: Install Go ${{ steps.go-version.outputs.golang_version }}
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.golang_version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
vulnerabilities-check:
name: Check for Vulnerabilities
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- uses: goplugin/[email protected]
id: go-version
- name: Install Go ${{ steps.go-version.outputs.golang_version }}
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.golang_version }}
- name: Write Go List
run: go list -json -deps ./... > go.list
- name: Nancy
uses: sonatype-nexus-community/nancy-github-action@main
helm-template-check:
name: Verify Helm Template Formats
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- uses: goplugin/[email protected]
id: tool-versions
- uses: azure/[email protected]
with:
version: ${{ steps.tool-versions.outputs.helm_version }}
- name: Check templates
run: make lint_helm_templates
actionlint:
name: Validate Github Action Workflows
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- name: Install asdf dependencies
uses: asdf-vm/actions/[email protected]
- name: Run actionlint
run: actionlint