Skip to content

Commit 8ccf763

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent f73da3b commit 8ccf763

File tree

6 files changed

+84
-2
lines changed

6 files changed

+84
-2
lines changed

.github/workflows/checks.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# Edit Makefile.maker.yaml instead. #
44
################################################################################
55

6+
# Copyright 2024 SAP SE
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
# SPDX-License-Identifier: Apache-2.0
21+
622
name: Checks
723
"on":
824
push:

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# Edit Makefile.maker.yaml instead. #
44
################################################################################
55

6+
# Copyright 2024 SAP SE
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
# SPDX-License-Identifier: Apache-2.0
21+
622
name: CI
723
"on":
824
push:

.github/workflows/codeql.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# Edit Makefile.maker.yaml instead. #
44
################################################################################
55

6+
# Copyright 2024 SAP SE
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
# SPDX-License-Identifier: Apache-2.0
21+
622
name: CodeQL
723
"on":
824
push:

.golangci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# Edit Makefile.maker.yaml instead. #
44
################################################################################
55

6+
# Copyright 2024 SAP SE
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
# SPDX-License-Identifier: Apache-2.0
21+
622
run:
723
timeout: 3m # 1m by default
824
modules-download-mode: readonly

Makefile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# Edit Makefile.maker.yaml instead. #
44
################################################################################
55

6+
# Copyright 2024 SAP SE
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
# SPDX-License-Identifier: Apache-2.0
21+
622
MAKEFLAGS=--warn-undefined-variables
723
# /bin/sh is dash on Debian which does not support all features of ash/bash
824
# to fix that we use /bin/bash only on Debian to not break Alpine
@@ -90,7 +106,7 @@ check-license-headers: FORCE install-addlicense
90106
@printf "\e[1;36m>> addlicense --check\e[0m\n"
91107
@addlicense --check -- $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...))
92108

93-
check-dependency-licenses: FORCE install go-licence-detector
109+
check-dependency-licenses: FORCE install-go-licence-detector
94110
@printf "\e[1;36m>> go-licence-detector\e[0m\n"
95111
@go list -m -mod=readonly -json all | go-licence-detector -includeIndirect -rules .license-scan-rules.json -overrides .license-scan-overrides.jsonl
96112

@@ -113,7 +129,7 @@ help: FORCE
113129
@printf "\n"
114130
@printf "\e[1mPrepare\e[0m\n"
115131
@printf " \e[36minstall-golangci-lint\e[0m Install golangci-lint required by run-golangci-lint/static-check\n"
116-
@printf " \e[36minstall-go-licence-detector\e[0m Install go-licence-detector required by check-dependency-licenses/static-check\n"
132+
@printf " \e[36minstall-go-licence-detector\e[0m Install-go-licence-detector required by check-dependency-licenses/static-check\n"
117133
@printf " \e[36minstall-addlicense\e[0m Install addlicense required by check-license-headers/license-headers/static-check\n"
118134
@printf " \e[36mprepare-static-check\e[0m Install any tools required by static-check. This is used in CI before dropping privileges, you should probably install all the tools using your package manager\n"
119135
@printf " \e[36minstall-controller-gen\e[0m Install controller-gen required by static-check and build-all. This is used in CI before dropping privileges, you should probably install all the tools using your package manager\n"

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
{ pkgs ? import <nixpkgs> { } }:
24

35
with pkgs;

0 commit comments

Comments
 (0)