-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.26 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
name: Linting
on:
pull_request:
jobs:
tools:
name: Get Tool tool-versions
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v4
- uses: goplugin/[email protected]
id: tool-versions
outputs:
golangci-lint-version: ${{ steps.tool-versions.outputs.golangci-lint_version }}
golangci:
name: Linting
runs-on: ubuntu-latest
needs: [tools]
steps:
- name: Check out Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v${{ needs.tools.outputs.golangci-lint-version }}
vulnerabilities-check:
name: Check for Vulnerabilities
runs-on: ubuntu-latest
needs: [tools]
steps:
- name: Check out Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true
- name: Write Go List
run: go list -json -deps ./... > go.list
- name: Nancy
uses: sonatype-nexus-community/nancy-github-action@main