-
-
Notifications
You must be signed in to change notification settings - Fork 33
30 lines (27 loc) · 776 Bytes
/
Copy pathlint.yml
File metadata and controls
30 lines (27 loc) · 776 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
28
29
30
name: lint
on:
push:
pull_request:
jobs:
lint:
name: lint
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v7
- name: setup go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: go mod tidy check
uses: katexochen/go-tidy-check@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v9.3.0
with:
version: v2.11.3 # LINT_VERSION: update version in other places
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
repo-checkout: false
go-package: ./...