GitHub repository Severitylow builtIn

Description

Every deployment environment exposes an HTML URL that documents its configuration page. A missing HtmlUrl typically indicates a partially-created environment or an API quirk that should be reviewed - environments without an HTML URL are difficult to navigate to from incident-response runbooks.

Recommendation

1. Go to Repository Settings -> Environments. 
2. Open each environment in the GitHub web UI to confirm the page is reachable. 
3. Re-create or remove environments that fail to render.

Policy Rule

{
  "target": "GHEnvironment",
  "if": {
    "allOf": [
      {
        "resource": "GHEnvironment",
        "property": "HtmlUrl",
        "operator": "notEquals",
        "value": ""
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}