diff --git a/components/operator/Makefile b/components/operator/Makefile index 240890439..9a8faa68f 100644 --- a/components/operator/Makefile +++ b/components/operator/Makefile @@ -4,6 +4,9 @@ ifndef MODULE_VERSION include $(PROJECT_ROOT)/.version endif +# Path to the sec-scanners-config file +SEC_SCANNERS_CONFIG ?= "" + # Module Name used for bundling the OCI Image and later on for referencing in the Kyma Modules MODULE_NAME ?= serverless # Module Registry used for pushing the image @@ -132,6 +135,7 @@ module-image: docker-build docker-push ## Build the Module Image and push it to module-build: ## Build the Module and push artifacts to the registry module-build: kyma kustomize render-manifest module-config-template configure-git-origin $(KYMA) alpha create module --path $(PROJECT_ROOT) --output=$(PROJECT_ROOT)/moduletemplate.yaml \ + --sec-scanners-config="${SEC_SCANNERS_CONFIG}" \ --module-config-file=$(PROJECT_ROOT)/module-config.yaml $(MODULE_CREATION_FLAGS) .PHONY: module-config-template diff --git a/module-config-template.yaml b/module-config-template.yaml index 3dc5a2a1a..73a7a3180 100644 --- a/module-config-template.yaml +++ b/module-config-template.yaml @@ -3,7 +3,6 @@ channel: {{.Channel}} version: {{.Version}} defaultCR: config/samples/default-serverless-cr.yaml manifest: serverless-operator.yaml -security: sec-scanners-config.yaml annotations: "operator.kyma-project.io/doc-url": "https://kyma-project.io/#/serverless-manager/user/README" moduleRepo: https://github.com/kyma-project/serverless-manager.git