Skip to content

Commit e5a4c18

Browse files
authored
chore: update go dependencies (#56)
Build using Go v1.26.5. These changes are the result of: - make rekres - go get -u ./... - go mod tidy - gofumpt -w . Signed-off-by: Robin Elfrink <robin.elfrink@eu.equinix.com> Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent 496c549 commit e5a4c18

16 files changed

Lines changed: 353 additions & 330 deletions

File tree

.dockerignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-08-21T13:38:59Z by kres 6262116.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

55
*
66
!cmd
@@ -13,3 +13,4 @@
1313
!README.md
1414
!.markdownlint.json
1515
!hack/govulncheck.sh
16+
!.disvulncheck.yaml

.github/renovate.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"description": "THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.",
3+
"description": "THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.",
44
"prHeader": "Update Request | Renovate Bot",
55
"extends": [
66
":dependencyDashboard",
@@ -32,5 +32,6 @@
3232
]
3333
}
3434
],
35-
"separateMajorMinor": false
35+
"separateMajorMinor": false,
36+
"draftPR": true
3637
}

.github/workflows/ci.yaml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-01-12T09:14:34Z by kres 0e8da31.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

55
concurrency:
66
group: ${{ github.head_ref || github.run_id }}
77
cancel-in-progress: true
8-
"on":
8+
'on':
99
push:
1010
branches:
1111
- main
@@ -27,7 +27,8 @@ jobs:
2727
pull-requests: read
2828
runs-on:
2929
group: generic
30-
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
30+
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref,
31+
'dependabot/'))
3132
steps:
3233
- name: gather-system-info
3334
id: system-info
@@ -55,17 +56,25 @@ jobs:
5556
done
5657
continue-on-error: true
5758
- name: checkout
58-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # version: v6.0.1
59+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # version: v7.0.0
5960
- name: Unshallow
6061
run: |
6162
git fetch --prune --unshallow
6263
- name: Set up Docker Buildx
6364
id: setup-buildx
64-
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # version: v3.12.0
65+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # version: v4.2.0
6566
with:
6667
driver: remote
6768
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
6869
timeout-minutes: 10
70+
- name: CI temp release tag
71+
if: github.event_name == 'pull_request'
72+
run: |
73+
make ci-temp-release-tag
74+
- name: Check dirty
75+
if: github.event_name == 'pull_request'
76+
run: |
77+
make check-dirty
6978
- name: base
7079
run: |
7180
make base
@@ -74,7 +83,7 @@ jobs:
7483
make talos-vmtoolsd
7584
- name: Login to registry
7685
if: github.event_name != 'pull_request'
77-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # version: v3.6.0
86+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # version: v4.4.0
7887
with:
7988
password: ${{ secrets.GITHUB_TOKEN }}
8089
registry: ghcr.io
@@ -108,7 +117,7 @@ jobs:
108117
make release-notes
109118
- name: Release
110119
if: startsWith(github.ref, 'refs/tags/')
111-
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # version: v2.5.0
120+
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # version: v3.0.1
112121
with:
113122
body_path: _out/RELEASE_NOTES.md
114123
draft: "true"
@@ -148,13 +157,13 @@ jobs:
148157
done
149158
continue-on-error: true
150159
- name: checkout
151-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # version: v6.0.1
160+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # version: v7.0.0
152161
- name: Unshallow
153162
run: |
154163
git fetch --prune --unshallow
155164
- name: Set up Docker Buildx
156165
id: setup-buildx
157-
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # version: v3.12.0
166+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # version: v4.2.0
158167
with:
159168
driver: remote
160169
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -195,13 +204,13 @@ jobs:
195204
done
196205
continue-on-error: true
197206
- name: checkout
198-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # version: v6.0.1
207+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # version: v7.0.0
199208
- name: Unshallow
200209
run: |
201210
git fetch --prune --unshallow
202211
- name: Set up Docker Buildx
203212
id: setup-buildx
204-
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # version: v3.12.0
213+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # version: v4.2.0
205214
with:
206215
driver: remote
207216
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234

.github/workflows/lock.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-01-12T09:14:34Z by kres 0e8da31.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

5-
"on":
5+
'on':
66
schedule:
77
- cron: 0 2 * * *
88
name: Lock old issues
@@ -14,7 +14,7 @@ jobs:
1414
- ubuntu-latest
1515
steps:
1616
- name: Lock old issues
17-
uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # version: v6.0.0
17+
uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # version: v6.0.2
1818
with:
1919
issue-inactive-days: "60"
2020
log-output: "true"

.github/workflows/slack-notify-ci-failure.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-01-12T09:14:34Z by kres 0e8da31.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

5-
"on":
5+
'on':
66
workflow_run:
77
workflows:
88
- default
@@ -11,14 +11,16 @@
1111
branches:
1212
- main
1313
name: slack-notify-failure
14+
permissions: {}
1415
jobs:
1516
slack-notify:
1617
runs-on:
1718
group: generic
18-
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event != 'pull_request'
19+
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event
20+
!= 'pull_request'
1921
steps:
2022
- name: Slack Notify
21-
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # version: v2.1.1
23+
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # version: v3.0.3
2224
with:
2325
method: chat.postMessage
2426
payload: |
@@ -33,7 +35,7 @@ jobs:
3335
{
3436
"fields": [
3537
{
36-
"text": "${{ github.event.workflow_run.event == 'pull_request' && format('*Pull Request:* {0} (`{1}`)\n<{2}/pull/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, steps.get-pr-number.outputs.pull_request_number, github.event.workflow_run.display_title) || format('*Build:* {0} (`{1}`)\n<{2}/commit/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, github.sha, github.event.workflow_run.display_title) }}",
38+
"text": "${{ format('*Build:* {0} (`{1}`)\n<{2}/commit/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, github.sha, github.event.workflow_run.display_title) }}",
3739
"type": "mrkdwn"
3840
},
3941
{

.github/workflows/slack-notify.yaml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-01-12T09:14:34Z by kres 0e8da31.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

5-
"on":
5+
'on':
66
workflow_run:
77
workflows:
88
- default
99
types:
1010
- completed
1111
name: slack-notify
12+
permissions:
13+
pull-requests: read
1214
jobs:
1315
slack-notify:
1416
runs-on:
@@ -18,12 +20,24 @@ jobs:
1820
- name: Get PR number
1921
id: get-pr-number
2022
if: github.event.workflow_run.event == 'pull_request'
21-
env:
22-
GH_TOKEN: ${{ github.token }}
23-
run: |
24-
echo pull_request_number=$(gh pr view -R ${{ github.repository }} ${{ github.event.workflow_run.head_repository.owner.login }}:${{ github.event.workflow_run.head_branch }} --json number --jq .number) >> $GITHUB_OUTPUT
23+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # version: v9.0.0
24+
with:
25+
script: |
26+
const prs = await github.rest.pulls.list({
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
head: `${context.payload.workflow_run.head_repository.owner.login}:${context.payload.workflow_run.head_branch}`,
30+
state: 'all',
31+
sort: 'updated',
32+
direction: 'desc',
33+
per_page: 1,
34+
})
35+
36+
if (prs.data.length > 0) {
37+
core.setOutput('pull_request_number', prs.data[0].number)
38+
}
2539
- name: Slack Notify
26-
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # version: v2.1.1
40+
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # version: v3.0.3
2741
with:
2842
method: chat.postMessage
2943
payload: |

.github/workflows/stale.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-01-12T09:14:34Z by kres 0e8da31.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

5-
"on":
5+
'on':
66
schedule:
77
- cron: 30 1 * * *
88
name: Close stale issues and PRs
@@ -15,13 +15,17 @@ jobs:
1515
- ubuntu-latest
1616
steps:
1717
- name: Close stale issues and PRs
18-
uses: actions/stale@a21a0816299b11691f9592ef0d63d08e02f06d9d # version: v10.1.1
18+
uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # version: v10.3.0
1919
with:
20-
close-issue-message: This issue was closed because it has been stalled for 7 days with no activity.
20+
close-issue-message: This issue was closed because it has been stalled for
21+
7 days with no activity.
2122
days-before-issue-close: "5"
2223
days-before-issue-stale: "180"
2324
days-before-pr-close: "-1"
2425
days-before-pr-stale: "45"
2526
operations-per-run: "2000"
26-
stale-issue-message: This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
27-
stale-pr-message: This PR is stale because it has been open 45 days with no activity.
27+
stale-issue-message: This issue is stale because it has been open 180 days
28+
with no activity. Remove stale label or comment or this will be closed
29+
in 7 days.
30+
stale-pr-message: This PR is stale because it has been open 45 days with
31+
no activity.

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2024-03-28T12:14:24Z by kres 88d1199.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

55
_out
6+
*.local.md
7+
*.override.md

.golangci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-08-21T11:52:12Z by kres 6262116.
3+
# Generated on 2026-07-24T06:06:44Z by kres 5f4a4c6.
44

55
version: "2"
66

@@ -9,6 +9,7 @@ run:
99
modules-download-mode: readonly
1010
issues-exit-code: 1
1111
tests: true
12+
build-tags: []
1213

1314
# output configuration options
1415
output:
@@ -30,8 +31,10 @@ linters:
3031
- funlen
3132
- gochecknoglobals
3233
- gochecknoinits
34+
- goconst # complains about repeated values without understanding code context, it checks comments and logger variables and gives false positives for all of those
3335
- godox
3436
- gomoddirectives
37+
- gomodguard
3538
- gosec
3639
- inamedparam
3740
- ireturn
@@ -70,16 +73,13 @@ linters:
7073
min-complexity: 30
7174
nestif:
7275
min-complexity: 5
73-
goconst:
74-
min-len: 3
75-
min-occurrences: 3
7676
gocritic:
7777
disabled-checks: [ ]
7878
gocyclo:
7979
min-complexity: 20
8080
godot:
8181
scope: declarations
82-
gomodguard: { }
82+
gomodguard_v2: { }
8383
govet:
8484
enable-all: true
8585
lll:
@@ -132,8 +132,8 @@ linters:
132132
- builtin$
133133
- examples$
134134
issues:
135-
max-issues-per-linter: 10
136-
max-same-issues: 3
135+
max-issues-per-linter: 1024
136+
max-same-issues: 1024
137137
uniq-by-line: true
138138
new: false
139139

0 commit comments

Comments
 (0)