I have a makefile and a checkov config file in terraform/eks folder. Makefile is written in bash shell script and config file is written in yaml file. I want to add notification such that whenever build fails due to checkov scan fails, then the team should get notification. Is there any way to add notification in either of the file.
Inside the Makefile I have this line:
checkov: tf_plan_as_json ##Testing run checkov validation against terraform plan file
$(info Executing Checkov)
$(Checkov) -f $(DOCKER_WORKING_DIR)/$(TF_MODULE_PATH)/tfplan.json --config-file $(CHECKOV_CONFIG)
Can anyone pls help me understand what is written over here and can we had a line which will send me a notification if this Checkov scan fails?