File tree 4 files changed +39
-22
lines changed
4 files changed +39
-22
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
updates :
3
3
- package-ecosystem : gomod
4
- directory : /pkg # Location of package manifests
4
+ directories :
5
+ - /pkg
6
+ - /tools
5
7
schedule :
6
8
interval : daily
7
9
labels :
8
- - dependencies
9
- - package-ecosystem : gomod
10
- directory : /tools # Location of package manifests
11
- schedule :
12
- interval : weekly
13
- labels :
14
- - dependencies
10
+ - dependencies
11
+ groups :
12
+ gomod :
13
+ update-types :
14
+ - " patch"
15
+
15
16
- package-ecosystem : " github-actions"
16
17
# Workflow files stored in the
17
18
# default location of `.github/workflows`
18
19
directory : " /"
19
20
schedule :
20
21
interval : " weekly"
22
+ groups :
23
+ actions :
24
+ update-types :
25
+ - " minor"
26
+ - " patch"
Original file line number Diff line number Diff line change 13
13
jobs :
14
14
lint :
15
15
runs-on : ubuntu-latest
16
+
16
17
env :
17
18
GOPATH : /home/runner/go
19
+
18
20
steps :
19
21
- name : Checkout
20
- uses : actions/checkout@v4
22
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21
23
with :
22
24
submodules : recursive
25
+
23
26
- name : Setup Go
24
- uses : actions/setup-go@v5
27
+ uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
25
28
with :
26
- go-version : 1.21
29
+ go-version : ' 1.21'
30
+ check-latest : true
31
+
27
32
- name : Format check
28
33
run : make fmt
34
+
29
35
- name : golangci-lint
30
- uses : golangci/golangci-lint-action@v6
36
+ uses : golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
31
37
with :
32
- version : v1.59.1
38
+ version : v1.59
33
39
args : --build-tags testonly
40
+
34
41
- name : Check generated code
35
42
run : make generate
Original file line number Diff line number Diff line change 16
16
permissions :
17
17
# required for all workflows
18
18
security-events : write
19
-
20
19
# required to fetch internal or private CodeQL packs
21
20
packages : read
22
-
23
21
# only required for workflows in private repositories
24
22
actions : read
25
23
contents : read
@@ -33,17 +31,17 @@ jobs:
33
31
34
32
steps :
35
33
- name : Checkout repository
36
- uses : actions/checkout@v4
34
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
37
35
38
36
# Initializes the CodeQL tools for scanning.
39
37
- name : Initialize CodeQL
40
- uses : github/codeql-action/init@v3
38
+ uses : github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
41
39
with :
42
40
languages : ${{ matrix.language }}
43
41
build-mode : ${{ matrix.build-mode }}
44
42
queries : security-and-quality
45
43
46
44
- name : Perform CodeQL Analysis
47
- uses : github/codeql-action/analyze@v3
45
+ uses : github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
48
46
with :
49
47
category : " /language:${{matrix.language}}"
Original file line number Diff line number Diff line change 16
16
jobs :
17
17
coverage :
18
18
runs-on : ubuntu-latest
19
+
19
20
env :
20
21
GOPATH : /home/runner/go
22
+
21
23
steps :
22
24
- name : Checkout
23
- uses : actions/checkout@v4
25
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24
26
with :
25
27
submodules : recursive
28
+
26
29
- name : Setup Go
27
- uses : actions/setup-go@v5
30
+ uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
28
31
with :
29
- go-version : 1.21
32
+ go-version : ' 1.21'
33
+ check-latest : true
34
+
30
35
- name : Generate coverage report
31
36
run : make test
37
+
32
38
- name : Upload coverage reports to Codecov
33
- uses : codecov/codecov-action@v4
39
+ uses : codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
34
40
with :
35
41
token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments