Enforce SECURITY.md updates

Add SECURITY.md to the enforced repo sync updates.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2021-01-16 20:07:55 +01:00
parent e483cff61f
commit 2fd1243b0e
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1

View File

@ -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)"