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.

Recommandation

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.

Règle de politique

{
  "target": "GHEnvironment",
  "if": {
    "allOf": [
      {
        "resource": "GHEnvironment",
        "property": "HtmlUrl",
        "operator": "notEquals",
        "value": ""
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}
Détails de la règle
  • ID de la règle: DOS5755
  • Code: GH_Repository_Environment_Should_Have_Html_Url
  • Plateforme: GitHub
  • Catégorie: repository
  • Sévérité: Severitylow
  • Type: builtIn