Skip to content

Commit f0ae73e

Browse files
committed
chore: rekres
Rekres and fix linting Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
1 parent a48a0fc commit f0ae73e

11 files changed

Lines changed: 103 additions & 49 deletions

File tree

.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: 6 additions & 6 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 2026-05-06T09:14:46Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
concurrency:
66
group: ${{ github.head_ref || github.run_id }}
@@ -61,7 +61,7 @@ jobs:
6161
git fetch --prune --unshallow
6262
- name: Set up Docker Buildx
6363
id: setup-buildx
64-
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # version: v4.0.0
64+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # version: v4.1.0
6565
with:
6666
driver: remote
6767
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -126,7 +126,7 @@ jobs:
126126
git fetch --prune --unshallow
127127
- name: Set up Docker Buildx
128128
id: setup-buildx
129-
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # version: v4.0.0
129+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # version: v4.1.0
130130
with:
131131
driver: remote
132132
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -173,7 +173,7 @@ jobs:
173173
git fetch --prune --unshallow
174174
- name: Set up Docker Buildx
175175
id: setup-buildx
176-
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # version: v4.0.0
176+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # version: v4.1.0
177177
with:
178178
driver: remote
179179
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
@@ -185,7 +185,7 @@ jobs:
185185
run: |
186186
make unit-tests-race
187187
- name: coverage
188-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # version: v6.0.0
188+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # version: v6.0.1
189189
with:
190190
files: _out/coverage-unit-tests.txt
191191
flags: unit-tests

.github/workflows/lock.yml

Lines changed: 3 additions & 3 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 2026-05-06T09:14:46Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
"on":
66
schedule:
@@ -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: 5 additions & 4 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 2026-05-06T09:14:46Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
"on":
66
workflow_run:
@@ -11,14 +11,15 @@
1111
branches:
1212
- main
1313
name: slack-notify-failure
14+
permissions: {}
1415
jobs:
1516
slack-notify:
1617
runs-on:
1718
group: generic
1819
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event != 'pull_request'
1920
steps:
2021
- name: Slack Notify
21-
uses: slackapi/slack-github-action@03ea5433c137af7c0495bc0cad1af10403fc800c # version: v3.0.2
22+
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # version: v3.0.3
2223
with:
2324
method: chat.postMessage
2425
payload: |
@@ -33,7 +34,7 @@ jobs:
3334
{
3435
"fields": [
3536
{
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) }}",
37+
"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) }}",
3738
"type": "mrkdwn"
3839
},
3940
{

.github/workflows/slack-notify.yaml

Lines changed: 21 additions & 7 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 2026-05-06T09:14:46Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
"on":
66
workflow_run:
@@ -9,6 +9,8 @@
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@03ea5433c137af7c0495bc0cad1af10403fc800c # version: v3.0.2
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: 3 additions & 3 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 2026-05-06T09:14:46Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
"on":
66
schedule:
@@ -15,7 +15,7 @@ jobs:
1515
- ubuntu-latest
1616
steps:
1717
- name: Close stale issues and PRs
18-
uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # version: v10.2.0
18+
uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # version: v10.3.0
1919
with:
2020
close-issue-message: This issue was closed because it has been stalled for 7 days with no activity.
2121
days-before-issue-close: "5"

.golangci.yml

Lines changed: 5 additions & 6 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 2026-05-06T09:14:46Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
version: "2"
66

@@ -31,8 +31,10 @@ linters:
3131
- funlen
3232
- gochecknoglobals
3333
- 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
3435
- godox
3536
- gomoddirectives
37+
- gomodguard
3638
- gosec
3739
- inamedparam
3840
- ireturn
@@ -71,16 +73,13 @@ linters:
7173
min-complexity: 30
7274
nestif:
7375
min-complexity: 5
74-
goconst:
75-
min-len: 3
76-
min-occurrences: 3
7776
gocritic:
7877
disabled-checks: [ ]
7978
gocyclo:
8079
min-complexity: 20
8180
godot:
8281
scope: declarations
83-
gomodguard: { }
82+
gomodguard_v2: { }
8483
govet:
8584
enable-all: true
8685
lll:

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# syntax = docker/dockerfile-upstream:1.23.0-labs
1+
# syntax = docker/dockerfile-upstream:1.24.0-labs
22

3-
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
3+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
44
#
5-
# Generated on 2026-05-06T09:14:46Z by kres 1762ab2.
5+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
66

77
ARG TOOLCHAIN=scratch
88

99
# cleaned up specs and compiled versions
1010
FROM scratch AS generate
1111

1212
# runs markdownlint
13-
FROM docker.io/oven/bun:1.3.13-alpine AS lint-markdown
13+
FROM docker.io/oven/bun:1.3.14-alpine AS lint-markdown
1414
WORKDIR /src
1515
RUN bun i markdownlint-cli@0.48.0 sentences-per-line@0.5.2
1616
COPY .markdownlint.json .

Makefile

Lines changed: 15 additions & 10 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 2026-05-11T10:33:56Z by kres 1762ab2.
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
44

55
# common variables
66

@@ -20,19 +20,20 @@ REGISTRY ?= ghcr.io
2020
USERNAME ?= cosi-project
2121
REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
2222
PROTOBUF_GO_VERSION ?= 1.36.11
23-
GRPC_GO_VERSION ?= 1.6.1
23+
GRPC_GO_VERSION ?= 1.6.2
2424
GRPC_GATEWAY_VERSION ?= 2.29.0
2525
VTPROTOBUF_VERSION ?= 0.6.0
26-
GOIMPORTS_VERSION ?= 0.44.0
26+
GOIMPORTS_VERSION ?= 0.45.0
2727
GOMOCK_VERSION ?= 0.6.0
2828
DEEPCOPY_VERSION ?= v0.5.8
29-
GOLANGCILINT_VERSION ?= v2.11.4
30-
GOFUMPT_VERSION ?= v0.9.2
31-
GO_VERSION ?= 1.26.2
32-
DIS_VULNCHECK_VERSION ?= v0.0.0-20260409114749-05440f84fe69
29+
GOLANGCILINT_VERSION ?= v2.12.2
30+
GOFUMPT_VERSION ?= v0.10.0
31+
GO_VERSION ?= 1.26.4
32+
DIS_VULNCHECK_VERSION ?= v0.0.0-20260430093434-b73e0972e2fb
3333
GO_BUILDFLAGS ?=
3434
GO_BUILDTAGS ?= ,
3535
GO_LDFLAGS ?=
36+
GO_GCFLAGS ?=
3637
CGO_ENABLED ?= 0
3738
GOTOOLCHAIN ?= local
3839
GOEXPERIMENT ?=
@@ -52,6 +53,7 @@ WITH_BUILD_DEBUG ?=
5253
BUILDKIT_MULTI_PLATFORM ?=
5354
COMMON_ARGS = --file=Dockerfile
5455
COMMON_ARGS += --provenance=false
56+
COMMON_ARGS += --sbom=false
5557
COMMON_ARGS += --progress=$(PROGRESS)
5658
COMMON_ARGS += --platform=$(PLATFORM)
5759
COMMON_ARGS += --build-arg=BUILDKIT_MULTI_PLATFORM=$(BUILDKIT_MULTI_PLATFORM)
@@ -65,6 +67,7 @@ COMMON_ARGS += --build-arg=REGISTRY="$(REGISTRY)"
6567
COMMON_ARGS += --build-arg=TOOLCHAIN="$(TOOLCHAIN)"
6668
COMMON_ARGS += --build-arg=CGO_ENABLED="$(CGO_ENABLED)"
6769
COMMON_ARGS += --build-arg=GO_BUILDFLAGS="$(GO_BUILDFLAGS)"
70+
COMMON_ARGS += --build-arg=GO_GCFLAGS="$(GO_GCFLAGS)"
6871
COMMON_ARGS += --build-arg=GO_LDFLAGS="$(GO_LDFLAGS)"
6972
COMMON_ARGS += --build-arg=GOTOOLCHAIN="$(GOTOOLCHAIN)"
7073
COMMON_ARGS += --build-arg=GOEXPERIMENT="$(GOEXPERIMENT)"
@@ -78,6 +81,7 @@ COMMON_ARGS += --build-arg=DEEPCOPY_VERSION="$(DEEPCOPY_VERSION)"
7881
COMMON_ARGS += --build-arg=GOLANGCILINT_VERSION="$(GOLANGCILINT_VERSION)"
7982
COMMON_ARGS += --build-arg=GOFUMPT_VERSION="$(GOFUMPT_VERSION)"
8083
COMMON_ARGS += --build-arg=DIS_VULNCHECK_VERSION="$(DIS_VULNCHECK_VERSION)"
84+
COMMON_ARGS += --build-arg=SYFT_VERSION="$(SYFT_VERSION)"
8185
COMMON_ARGS += --build-arg=TESTPKGS="$(TESTPKGS)"
8286
TOOLCHAIN ?= docker.io/golang:1.26-alpine
8387

@@ -142,6 +146,7 @@ GO_LDFLAGS += -linkmode=external -extldflags '-static'
142146
endif
143147

144148
ifneq (, $(filter $(WITH_DEBUG), t true TRUE y yes 1))
149+
GO_GCFLAGS += -N -l
145150
GO_BUILDTAGS := $(GO_BUILDTAGS)sidero.debug,
146151
else
147152
GO_LDFLAGS += -s
@@ -197,7 +202,7 @@ lint-gofumpt: ## Runs gofumpt linter.
197202

198203
.PHONY: fmt
199204
fmt: ## Formats the source code
200-
@docker run --rm -it -v $(PWD):/src -w /src golang:$(GO_VERSION) \
205+
@docker run --rm -v $(PWD):/src -w /src golang:$(GO_VERSION) \
201206
bash -c "export GOTOOLCHAIN=local; \
202207
export GO111MODULE=on; export GOPROXY=https://proxy.golang.org; \
203208
go install mvdan.cc/gofumpt@$(GOFUMPT_VERSION) && \
@@ -245,7 +250,7 @@ release-notes: $(ARTIFACTS)
245250
.PHONY: conformance
246251
conformance:
247252
@docker pull $(CONFORMANCE_IMAGE)
248-
@docker run --rm -it -v $(PWD):/src -w /src $(CONFORMANCE_IMAGE) enforce
253+
@docker run --rm -v $(PWD):/src -w /src $(CONFORMANCE_IMAGE) enforce
249254

250255
.PHONY: renovate-local
251256
renovate-local: ## runs renovate locally to check syntax and test configuration

lefthook.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2026-06-05T08:26:56Z by kres a07fce6.
4+
5+
commit-msg:
6+
parallel: false
7+
commands:
8+
conformance:
9+
run: make conformance
10+
pre-commit:
11+
jobs:
12+
- name: fix
13+
group:
14+
parallel: false
15+
jobs:
16+
- name: generate
17+
run: make generate
18+
stage_fixed: true
19+
- name: fmt
20+
run: make fmt
21+
stage_fixed: true
22+
- name: lint-fmt
23+
run: make lint-fmt
24+
stage_fixed: true
25+
- name: lint
26+
group:
27+
parallel: false
28+
jobs:
29+
- name: lint
30+
run: make lint

0 commit comments

Comments
 (0)