Skip to content

Commit 080d904

Browse files
authored
Update ci jobs and dependabot config (#84)
* use git hashes instead of git tag Signed-off-by: cpanato <[email protected]> * update dependabot config to group dependecies updates Signed-off-by: cpanato <[email protected]> --------- Signed-off-by: cpanato <[email protected]>
1 parent 935f556 commit 080d904

File tree

4 files changed

+39
-22
lines changed

4 files changed

+39
-22
lines changed

.github/dependabot.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
version: 2
22
updates:
33
- package-ecosystem: gomod
4-
directory: /pkg # Location of package manifests
4+
directories:
5+
- /pkg
6+
- /tools
57
schedule:
68
interval: daily
79
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+
1516
- package-ecosystem: "github-actions"
1617
# Workflow files stored in the
1718
# default location of `.github/workflows`
1819
directory: "/"
1920
schedule:
2021
interval: "weekly"
22+
groups:
23+
actions:
24+
update-types:
25+
- "minor"
26+
- "patch"

.github/workflows/ci.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,30 @@ on:
1313
jobs:
1414
lint:
1515
runs-on: ubuntu-latest
16+
1617
env:
1718
GOPATH: /home/runner/go
19+
1820
steps:
1921
- name: Checkout
20-
uses: actions/checkout@v4
22+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2123
with:
2224
submodules: recursive
25+
2326
- name: Setup Go
24-
uses: actions/setup-go@v5
27+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2528
with:
26-
go-version: 1.21
29+
go-version: '1.21'
30+
check-latest: true
31+
2732
- name: Format check
2833
run: make fmt
34+
2935
- name: golangci-lint
30-
uses: golangci/golangci-lint-action@v6
36+
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
3137
with:
32-
version: v1.59.1
38+
version: v1.59
3339
args: --build-tags testonly
40+
3441
- name: Check generated code
3542
run: make generate

.github/workflows/codeql.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ jobs:
1616
permissions:
1717
# required for all workflows
1818
security-events: write
19-
2019
# required to fetch internal or private CodeQL packs
2120
packages: read
22-
2321
# only required for workflows in private repositories
2422
actions: read
2523
contents: read
@@ -33,17 +31,17 @@ jobs:
3331

3432
steps:
3533
- name: Checkout repository
36-
uses: actions/checkout@v4
34+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3735

3836
# Initializes the CodeQL tools for scanning.
3937
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v3
38+
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
4139
with:
4240
languages: ${{ matrix.language }}
4341
build-mode: ${{ matrix.build-mode }}
4442
queries: security-and-quality
4543

4644
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v3
45+
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
4846
with:
4947
category: "/language:${{matrix.language}}"

.github/workflows/coverage.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ on:
1616
jobs:
1717
coverage:
1818
runs-on: ubuntu-latest
19+
1920
env:
2021
GOPATH: /home/runner/go
22+
2123
steps:
2224
- name: Checkout
23-
uses: actions/checkout@v4
25+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2426
with:
2527
submodules: recursive
28+
2629
- name: Setup Go
27-
uses: actions/setup-go@v5
30+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2831
with:
29-
go-version: 1.21
32+
go-version: '1.21'
33+
check-latest: true
34+
3035
- name: Generate coverage report
3136
run: make test
37+
3238
- name: Upload coverage reports to Codecov
33-
uses: codecov/codecov-action@v4
39+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
3440
with:
3541
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)