This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 8d27493823046e7f97b86a477ed025c628592b8b Author: Pasquale Congiusti <[email protected]> AuthorDate: Fri Aug 2 15:01:56 2024 +0200 chore(deps): bump linter --- pkg/builder/quarkus.go | 14 ++++++++++++-- script/Makefile | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pkg/builder/quarkus.go b/pkg/builder/quarkus.go index ef2e199e8..f39648b1e 100644 --- a/pkg/builder/quarkus.go +++ b/pkg/builder/quarkus.go @@ -37,6 +37,8 @@ import ( corev1 "k8s.io/api/core/v1" ) +const projectModePerm = 0600 + func init() { registerSteps(Quarkus) @@ -98,14 +100,22 @@ func prepareProjectWithSources(ctx *builderContext) error { sourceList += "," } sourceList += "classpath:routes/" + source.Name - if err := os.WriteFile(filepath.Join(sourcesPath, source.Name), []byte(source.Content), os.ModePerm); err != nil { + if err := os.WriteFile( + filepath.Join(sourcesPath, source.Name), + []byte(source.Content), + projectModePerm, + ); err != nil { return fmt.Errorf("failure while writing %s: %w", source.Name, err) } } if sourceList != "" { routesIncludedPattern := "camel.main.routes-include-pattern = " + sourceList - if err := os.WriteFile(filepath.Join(filepath.Dir(sourcesPath), "application.properties"), []byte(routesIncludedPattern), os.ModePerm); err != nil { + if err := os.WriteFile( + filepath.Join(filepath.Dir(sourcesPath), "application.properties"), + []byte(routesIncludedPattern), + projectModePerm, + ); err != nil { return fmt.Errorf("failure while writing the configuration application.properties: %w", err) } } diff --git a/script/Makefile b/script/Makefile index 53652ee5a..d6b1daadd 100644 --- a/script/Makefile +++ b/script/Makefile @@ -33,7 +33,7 @@ CODEGEN_VERSION := v0.29.7 OPERATOR_SDK_VERSION := v1.28.0 KUSTOMIZE_VERSION := v4.5.4 OPM_VERSION := v1.24.0 -LINTER_VERSION ?= v1.58.1 +LINTER_VERSION ?= v1.59.1 GOVULNCHECK_VERSION ?= latest LINTER ?= $(LOCALBIN)/golangci-lint
