Fix organization id
Add Resource pattern match to reject repo