GitHub repository Severityhigh builtIn

Description

GitHub Actions variable values are exposed to every workflow run. A value containing 'http://' (instead of 'https://') configures workflows to talk to backend services over plaintext, allowing in-transit interception of the workflow's data and credentials. Update the value to use 'https://'. (HTTPS may not be appropriate for purely internal localhost development URLs that never reach a real network; treat such cases as exemptions.)

Recommandation

1. Go to Repository or Organization Settings -> Secrets and variables -> Actions -> Variables. 
2. For each variable whose value contains http://, edit the value to use https:// where the backend supports TLS. 
3. For variables that genuinely need plaintext local URLs, document the exemption.

Règle de politique

{
  "target": "GHActionsVariable",
  "if": {
    "allOf": [
      {
        "resource": "GHActionsVariable",
        "property": "Value",
        "operator": "notContains",
        "value": "http://"
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}
Détails de la règle
  • ID de la règle: DOS5915
  • Code: GH_Repository_Actions_Variable_Value_Should_Not_Contain_Http
  • Plateforme: GitHub
  • Catégorie: repository
  • Sévérité: Severityhigh
  • Type: builtIn