mononoke/validate-owners: implement secure-owners check

Summary: For the OWNERS files in `secure` and `core` we need to check that all the groups and users mentioned in the OWNERS are in the secure owners group.

Reviewed By: StanislavGlebik

Differential Revision: D26761772

fbshipit-source-id: 02ad2bc45c82792e51702cd4d8d092557c76c015
This commit is contained in:
Aida Getoeva 2021-03-03 12:38:10 -08:00 committed by Facebook GitHub Bot
parent 355232b627
commit fc0d0732c5
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ pub async fn load_hooks(
.await?
{
ChangesetHook(hook)
} else if let Some(hook) = hook_name_to_file_hook(&hook.name, &hook.config)? {
} else if let Some(hook) = hook_name_to_file_hook(fb, &hook.name, &hook.config)? {
FileHook(hook)
} else {
return Err(ErrorKind::InvalidRustHook(hook.name.clone()).into());

View File

@ -60,6 +60,7 @@ pub fn hook_name_to_changeset_hook<'a>(
}
pub fn hook_name_to_file_hook(
_fb: FacebookInit,
name: &str,
config: &HookConfig,
) -> Result<Option<Box<dyn FileHook + 'static>>> {