-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (25 loc) · 808 Bytes
/
Copy pathlinters.yml
File metadata and controls
27 lines (25 loc) · 808 Bytes
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
name: Linter & Scanner
on:
pull_request:
paths:
- "**.go"
jobs:
build:
strategy:
matrix:
go: [ 'stable' ]
os: [ 'ubuntu-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run "google/wire" for DI
run: go run github.com/google/wire/cmd/wire@latest
- name: Run "govulncheck" scanner
run: go run golang.org/x/vuln/cmd/govulncheck@latest -test ./...
- name: Run "securego/gosec" scanner
run: go run github.com/securego/gosec/v2/cmd/gosec@latest -quiet ./...
- name: Run "go-critic/go-critic" linter
run: go run github.com/go-critic/go-critic/cmd/gocritic@latest check -enableAll ./...