Merge pull request #8370 from prometheus/superq/force_security.md

Enforce SECURITY.md updates
This commit is contained in:
Julien Pivotto 2021-01-16 22:12:03 +01:00 committed by GitHub
commit c83e4a7b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -73,10 +73,12 @@ process_repo() {
fi fi
if [[ -z "${target_file}" ]]; then if [[ -z "${target_file}" ]]; then
echo "${source_file} doesn't exist in ${org_repo}" echo "${source_file} doesn't exist in ${org_repo}"
if [[ "${source_file}" == 'CODE_OF_CONDUCT.md' ]] ; then case "${source_file}" in
echo "CODE_OF_CONDUCT.md missing in ${org_repo}, force updating." CODE_OF_CONDUCT.md | SECURITY.md)
needs_update+=('CODE_OF_CONDUCT.md') echo "${source_file} missing in ${org_repo}, force updating."
fi needs_update+=("${source_file}")
;;
esac
continue continue
fi fi
target_checksum="$(echo "${target_file}" | sha256sum | cut -d' ' -f1)" target_checksum="$(echo "${target_file}" | sha256sum | cut -d' ' -f1)"