From 679f2c493f983babed51f056019f6437be32d569 Mon Sep 17 00:00:00 2001 From: andrew-jameson Date: Thu, 5 Dec 2024 16:48:42 -0500 Subject: [PATCH] accounting for deleted files --- scripts/git-secrets-check.sh | 2 +- tdrs-backend/plg/alertmanager/alertmanager.yml | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 tdrs-backend/plg/alertmanager/alertmanager.yml diff --git a/scripts/git-secrets-check.sh b/scripts/git-secrets-check.sh index a25fce671..6f6c85f8b 100755 --- a/scripts/git-secrets-check.sh +++ b/scripts/git-secrets-check.sh @@ -35,7 +35,7 @@ fi if [ $islocal ]; then echo "git-secrets-check.sh: Scanning files staged for commit ..." setopt shwordsplit - staged_files=$(git diff --cached --name-status | grep -vE "^R[0-9]+"| cut -f2 | xargs) + staged_files=$(git diff --cached --name-status | grep -vE "D|^R[0-9]+"| cut -f2 | xargs) for filename in $staged_files; do echo "git-secrets-check.sh: Scanning $filename ..." diff --git a/tdrs-backend/plg/alertmanager/alertmanager.yml b/tdrs-backend/plg/alertmanager/alertmanager.yml deleted file mode 100644 index c8977a2e6..000000000 --- a/tdrs-backend/plg/alertmanager/alertmanager.yml +++ /dev/null @@ -1,9 +0,0 @@ -global: - # The smarthost and SMTP sender used for mail notifications. - smtp_smarthost: 'smtp.sendgrid.net:587' - smtp_from: 'no-reply@tanfdata.acf.hhs.gov' - smtp_auth_username: 'apikey' - # I promise the below is fake - smtp_auth_password: '{{ send_grid_api_key }}' - smtp_auth_password_file: '/etc/postfix/sasl_passwd' -