File tree Expand file tree Collapse file tree 12 files changed +32
-75
lines changed Expand file tree Collapse file tree 12 files changed +32
-75
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104
104
- name : Run GoReleaser
105
105
uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
106
106
with :
107
- version : latest
107
+ version : v2.2.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
108
108
args : release --clean
109
109
env :
110
110
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 55
55
56
56
# Initializes the CodeQL tools for scanning.
57
57
- name : Initialize CodeQL
58
- uses : github/codeql-action/init@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
58
+ uses : github/codeql-action/init@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
59
59
with :
60
60
languages : ${{ matrix.language }}
61
61
build-mode : ${{ matrix.build-mode }}
67
67
# queries: security-extended,security-and-quality
68
68
69
69
- name : Perform CodeQL Analysis
70
- uses : github/codeql-action/analyze@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
70
+ uses : github/codeql-action/analyze@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
71
71
with :
72
72
category : " /language:${{matrix.language}}"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
pull-requests : write # for actions/labeler to add labels
13
13
runs-on : ubuntu-22.04
14
14
steps :
15
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16
+ with :
17
+ sparse-checkout : |
18
+ labeler.yml
19
+ sparse-checkout-cone-mode : false
20
+ repository : nginxinc/k8s-common
21
+
15
22
- uses : actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
16
23
with :
17
24
repo-token : " ${{ secrets.GITHUB_TOKEN }}"
18
25
sync-labels : true
26
+ configuration-path : labeler.yml
Original file line number Diff line number Diff line change 31
31
32
32
- name : Lint Go
33
33
uses : golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
34
+ with :
35
+ version : v1.60.1 # renovate: datasource=github-tags depName=golangci/golangci-lint
34
36
35
37
actionlint :
36
38
name : Actionlint
Original file line number Diff line number Diff line change 57
57
58
58
# Upload the results to GitHub's code scanning dashboard.
59
59
- name : " Upload to code-scanning"
60
- uses : github/codeql-action/upload-sarif@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
60
+ uses : github/codeql-action/upload-sarif@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
61
61
with :
62
62
sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ linters-settings:
32
32
linters :
33
33
enable :
34
34
- asasalint
35
- - err113
36
35
- asciicheck
37
36
- bidichk
38
37
- contextcheck
38
+ - copyloopvar
39
39
- dupword
40
40
- durationcheck
41
+ - err113
41
42
- errcheck
42
43
- errchkjson
43
44
- errname
44
45
- errorlint
45
- - exportloopref
46
46
- fatcontext
47
47
- forcetypeassert
48
48
- gocheckcompilerdirectives
Original file line number Diff line number Diff line change @@ -11,15 +11,20 @@ repos:
11
11
- id : check-added-large-files
12
12
- id : check-merge-conflict
13
13
- id : check-shebang-scripts-are-executable
14
+ - id : check-executables-have-shebangs
14
15
- id : check-case-conflict
15
16
- id : check-vcs-permalinks
17
+ - id : check-json
18
+ - id : pretty-format-json
19
+ args : [--autofix, --no-ensure-ascii]
16
20
- id : mixed-line-ending
17
21
args : [--fix=lf]
18
22
- id : no-commit-to-branch
19
23
- id : fix-byte-order-marker
24
+ - id : detect-private-key
20
25
21
26
- repo : https://github.com/golangci/golangci-lint
22
- rev : v1.60.1
27
+ rev : v1.60.3
23
28
hooks :
24
29
- id : golangci-lint-full
25
30
46
51
47
52
ci :
48
53
skip : [golangci-lint-full]
54
+ autoupdate_schedule : quarterly # We use renovate for more frequent updates and there's no way to disable autoupdate
You can’t perform that action at this time.
0 commit comments