Debian Codegraph @

.github/workflows/golangci-lint.yml

raw
1 ---
2 name: golangci-lint
3 on:
4 push:
5 paths:
6 - "go.sum"
7 - "go.mod"
8 - "**.go"
9 - ".github/workflows/golangci-lint.yml"
10 - ".golangci.yml"
11 pull_request:
12
13 permissions: # added using https://github.com/step-security/secure-repo
14 contents: read
15
16 jobs:
17 golangci:
18 permissions:
19 contents: read # for actions/checkout to fetch code
20 pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
21 name: lint
22 runs-on: ubuntu-latest
23 steps:
24 - name: Checkout repository
25 uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26 - name: Install Go
27 uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
28 with:
29 go-version: 1.25.x
30 - name: Lint
31 uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
32 with:
33 args: --verbose
34 version: v2.7.2