Organization policy
An organization policy is a shared LGTM Security policy that applies to every repository attached to an organization. Repos can layer their own overrides on top, except on rules the org marks as Enforced.
Why a shared org policy
Growing teams hit the same problem with every code-security tool: each repo owner tunes the rules their way, and the security team loses the ability to make a change once and have it apply everywhere. LGTM Security's org policy is the fix. Create an organization, attach your monitors, define one policy, done — every attached repo inherits it.
Repos still get their own overrides for anything the org has not marked as Enforced. That preserves autonomy for teams that need it while giving the security team a single knob for the rules that actually matter (block on hardcoded secrets, enforce workflow permissions, etc.).
How resolution works
Effective policy = mergeWithOrgPolicy(repoPolicy, orgPolicy). For every rule, the repo's action wins UNLESS the org marked the rule enforced. Allowlists always union — the repo's actions/domains/runners allowlists are added to the org's. policyVersion takes the max of the two.
This is 'repo-wins-except-enforced'. It's a load-bearing invariant in LGTM — Model B repo access gating, the per-repo policy editor, the audit-log filter, and the CI-side pipeline decision all rely on this resolver returning the same answer.
When to use it
You want a single security team to define what critical means across every repo in your GitHub org. You want to guarantee that hardcoded-secret detection is 'block' everywhere, no matter what a repo maintainer sets. You want teammates to see a live count of overrides they've applied against the org baseline.
You do NOT need an org policy for a solo project or a repo with a single maintainer — the per-repo policy is enough. Orgs shine at 3+ repos and 2+ humans who care about tuning.
Setting one up
From the LGTM dashboard, Security → Organizations → Create. You become the sole Owner initially. Attach any of your enrolled monitors to the org from the org detail page (or via the attach API). Edit the org policy from the org policy editor — same rule + allowlist shape as a per-repo policy, plus a lock icon on each rule to mark it Enforced.
Read the Organizations & RBAC docs
Roles, invite flow, GitHub sync, enforced rules
Go to the product pageFAQs
Do I have to create an org to use LGTM Security?
No. Standalone monitors (no org attached) work exactly as they always have. Orgs are for teams that want one shared policy across many repos.
What happens to my monitor if the org is deleted?
Deleting an org unsets SecurityMonitor.orgId on every attached monitor (they become standalone again), deletes the OrganizationPolicy, and deletes members. Monitors keep working with their repo-local policy — no scan gap.
Can a repo opt out of the org policy?
For every rule the org has NOT marked as Enforced, the repo can override the action (block/warn/off) as usual. Enforced rules cannot be overridden — the server returns 409 if you try.
Related terms
Enforced rule
An enforced rule is an LGTM organization security rule the org has marked so that no attached repo can override its action. Enforced by <org> shows up as a locked chip on the per-repo policy editor.
Policy inheritance
Policy inheritance in LGTM Security is how a repo's effective policy is computed: repo policy overlaid on org policy, repo wins on every non-enforced rule, allowlists always union.
CI/CD security
CI/CD security covers the attack surface introduced by your build and deploy pipelines: GitHub Actions workflows, Dockerfiles, IaC configs, dependency management, and secret handling. Distinct from (and complementary to) application-layer AppSec.