Enterprise Policies and Audit: Verify Effective Governance
Separate policy layers
Enterprise owners can enforce certain policies across organizations or delegate decisions to organization owners. Organizations can configure controls within their permitted scope; repository rules govern specific targets such as branches. A policy is the intended rule; effective enforcement is the actual applicable behavior, including exceptions and bypass permissions. Do not assume every setting uses identical precedence.
Work through a policy example
Garden’s fictional enterprise prohibits public repositories. The organization also requires review for main, and the repository specifies a required check. A request to make a repository public is denied regardless of the local repository preference; a merge needs the review and check in this mock. A delegated enterprise setting allows an organization decision, not an automatic grant. This simplified model is not a general GitHub policy evaluator.
Read audit evidence
An audit log is a record of selected actions, not a complete recording of every operation. Examine actor, action, target and timestamp, and correlate with approvals, before/after access state and relevant identity or CI records. The event names and available fields differ by product and event type. Retention, export and streaming availability must be verified for the actual plan and version. Restrict access to audit exports and redact sensitive values in teaching or support records.
Investigate a synthetic event
The following event is invented for the lab, not an actual GitHub schema. It says an owner granted Sam write access to garden at a fixed time and mentions approval REQ-17. The approval identifier alone is not proof: compare the approved actor/subject, resource, role and time, then verify actual access and investigate inconsistencies.
{ "event_id": "demo-01", "time": "2026-01-10T12:00:00Z", "actor": "demo-owner", "action": "demo.grant", "target": "garden", "subject": "sam", "role": "write", "approval_id": "REQ-17"}Practice and handoff
Run the lab for matching approval, missing approval, wrong role and stale approval. Missing or conflicting evidence must be reported for review; absence of an event is not proof that no change occurred. A governance handoff records policy scope, responsible owner, exceptions with expiration, evidence sources and unresolved findings.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Enterprise Policies and Audit: Verify Effective Governance — knowledge check
Reason about organization access, identity lifecycle and governance.
What does delegated enterprise policy mean in this model?
Enterprise mock forbids public repos. Can local preference allow one?
What does a matching audit event alone prove?
Approval ID matches but role differs. What next?
What should an audit handoff include?