Skip to content

Commit 81fc9df

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent d3c8003 commit 81fc9df

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/setup-go@v6
3030
with:
3131
check-latest: true
32-
go-version: 1.26.0
32+
go-version: 1.25.7
3333
- name: Run golangci-lint
3434
uses: golangci/golangci-lint-action@v9
3535
with:

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.26.0
35+
go-version: 1.25.7
3636
- name: Build all binaries
3737
run: make build-all
3838
code_coverage:
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/setup-go@v6
6666
with:
6767
check-latest: true
68-
go-version: 1.26.0
68+
go-version: 1.25.7
6969
- name: Run tests and generate coverage report
7070
run: make build/cover.out
7171
- name: Archive code coverage results

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.26.0
35+
go-version: 1.25.7
3636
- name: Initialize CodeQL
3737
uses: github/codeql-action/init@v4
3838
with:

.golangci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ linters:
138138
- G112
139139
# created file permissions are restricted by umask if necessary
140140
- G306
141+
# the following lints cause false-positives in many repositories, should be fixed with the next release. (see https://github.com/securego/gosec/issues/1500)
142+
- G701
143+
- G702
144+
- G703
145+
- G704
146+
- G705
147+
- G706
141148
govet:
142149
disable:
143150
- fieldalignment

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ license-headers: FORCE install-addlicense install-reuse
177177
@printf "\e[1;36m>> addlicense (for license headers on source code files)\e[0m\n"
178178
@printf "%s\0" $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...)) | $(XARGS) -0 -I{} bash -c 'year="$$(grep 'Copyright' {} | head -n1 | grep -E -o '"'"'[0-9]{4}(-[0-9]{4})?'"'"')"; if [[ -z "$$year" ]]; then year=$$(date +%Y); fi; gawk -i inplace '"'"'{if (display) {print} else {!/^\/\*/ && !/^\*/}}; {if (!display && $$0 ~ /^(package |$$)/) {display=1} else { }}'"'"' {}; addlicense -c "SAP SE or an SAP affiliate company" -s=only -y "$$year" -- {}; $(SED) -i '"'"'1s+// Copyright +// SPDX-FileCopyrightText: +'"'"' {}; '
179179
@printf "\e[1;36m>> reuse annotate (for license headers on other files)\e[0m\n"
180-
@reuse lint -j | jq -r '.non_compliant.missing_licensing_info[]' | grep -vw vendor | $(XARGS) reuse annotate -c 'SAP SE or an SAP affiliate company' -l Apache-2.0 --skip-unrecognised
180+
@reuse lint -j | jq -r '.non_compliant.missing_licensing_info[]' | sed '/\<vendor\>/d' | $(XARGS) reuse annotate -c 'SAP SE or an SAP affiliate company' -l Apache-2.0 --skip-unrecognised
181181
@printf "\e[1;36m>> reuse download --all\e[0m\n"
182182
@reuse download --all
183183
@printf "\e[1;35mPlease review the changes. If *.license files were generated, consider instructing go-makefile-maker to add overrides to REUSE.toml instead.\e[0m\n"

0 commit comments

Comments
 (0)