From 2fd1243b0e5db450fc5dc4218d516ffab96b8e28 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Sat, 16 Jan 2021 20:07:55 +0100 Subject: [PATCH] Enforce SECURITY.md updates Add SECURITY.md to the enforced repo sync updates. Signed-off-by: Ben Kochie --- scripts/sync_repo_files.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/sync_repo_files.sh b/scripts/sync_repo_files.sh index 0077e58d3..1380ae139 100755 --- a/scripts/sync_repo_files.sh +++ b/scripts/sync_repo_files.sh @@ -73,10 +73,12 @@ process_repo() { fi if [[ -z "${target_file}" ]]; then echo "${source_file} doesn't exist in ${org_repo}" - if [[ "${source_file}" == 'CODE_OF_CONDUCT.md' ]] ; then - echo "CODE_OF_CONDUCT.md missing in ${org_repo}, force updating." - needs_update+=('CODE_OF_CONDUCT.md') - fi + case "${source_file}" in + CODE_OF_CONDUCT.md | SECURITY.md) + echo "${source_file} missing in ${org_repo}, force updating." + needs_update+=("${source_file}") + ;; + esac continue fi target_checksum="$(echo "${target_file}" | sha256sum | cut -d' ' -f1)"