Debian Codegraph @

.github/workflows/lint-go.yaml

raw symbols SCIP
1 name: Lint Go
2
3 on:
4 workflow_dispatch: {}
5 workflow_call:
6 pull_request:
7 branches: [main]
8 paths:
9 - internal/**
10 - pkg/**
11 - shoutrrr/**
12 - go.mod
13 - go.sum
14 - shoutrrr.go
15
16 permissions:
17 contents: read # Set default read-only permissions
18
19 jobs:
20 lint:
21 name: Run Golangci-lint
22 runs-on: ubuntu-latest
23 permissions:
24 pull-requests: read
25 steps:
26 - name: Harden the Runner (Step Security)
27 uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
28 with:
29 egress-policy: audit
30
31 - name: Checkout Repo
32 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33 with:
34 fetch-depth: 0
35 persist-credentials: false
36
37 - name: Setup Go
38 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
39 with:
40 cache: true
41 cache-dependency-path: "**/go.sum"
42 go-version-file: go.mod
43
44 - name: Run golangci-lint
45 uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
46 with:
47 args: --timeout=5m --config=build/golangci-lint/golangci.yaml
48 only-new-issues: true