Skip to content

Commit dbf05b4

Browse files
Fix: linter in workflow
1 parent 0cd7771 commit dbf05b4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
name: Tests
22
on: push
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
lint:
69
name: lint
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v2
12+
- uses: actions/setup-go@v3
13+
with:
14+
go-version: '1.19'
15+
- uses: actions/checkout@v3
1016
- name: golangci-lint
11-
uses: golangci/golangci-lint-action@v2.3.0
17+
uses: golangci/golangci-lint-action@v3
1218
with:
1319
version: v1.51.2
1420
args: --timeout=3m

.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ linters:
1111
- ineffassign
1212
- containedctx
1313
- tenv
14+
- musttag

0 commit comments

Comments
 (0)