{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:best-practices",
    ":disableDependencyDashboard"
  ],
  "semanticCommitType": "ci",
  "packageRules": [
    {
      "matchManagers": [
        "github-actions"
      ],
      "commitMessagePrefix": "GHA: ",
      "labels": [
        "CI"
      ],
      "enabled": false
    },
    {
      "matchUpdateTypes": [
        "pin",
        "pinDigest",
        "digest"
      ],
      "commitMessagePrefix": "GHA: ",
      "labels": [
        "CI"
      ]
    },
    {
      "matchManagers": [
        "custom.regex"
      ],
      "commitMessagePrefix": "GHA: ",
      "labels": [
        "CI"
      ]
    },
    {
      "matchDepNames": [
        "debian"
      ],
      "matchFileNames": [
        ".github/workflows/linux-old.yml"
      ],
      "enabled": false
    },
    {
      "description": "Schedule package updates on the 10th of each month",
      "matchPackageNames": [
        "/codeql/i",
        "/ruff/i"
      ],
      "groupName": "monthly updates by name",
      "schedule": [
        "* * 10 * *"
      ]
    },
    {
      "description": "Schedule package updates on the 10th of each month",
      "matchSourceUrls": [
        "**/awslabs/**"
      ],
      "groupName": "monthly updates by URL",
      "schedule": [
        "* * 10 * *"
      ]
    }
  ],
  "customManagers": [
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/^\\.circleci/config\\.yml/",
        "/^\\.github/workflows/.*\\.yml$/"
      ],
      "matchStrings": [
        "# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( extractVersion=(?<extractVersion>.+?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?_VERSION:\\s*(?<currentValue>.*)\\s"
      ],
      "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
      "extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^v?(?<version>.+)${{/if}}"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/^\\.github/workflows/http3-linux\\.yml$/",
        "/^\\.github/workflows/linux\\.yml$/"
      ],
      "matchStrings": [
        "OPENSSL_VERSION: (?<currentValue>.*)\\s"
      ],
      "datasourceTemplate": "github-tags",
      "depNameTemplate": "openssl/openssl",
      "versioningTemplate": "semver",
      "extractVersionTemplate": "^openssl-(?<version>.*)$"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/^\\.github/workflows/linux\\.yml$/"
      ],
      "matchStrings": [
        "OPENLDAP_VERSION: (?<currentValue>.*)\\s"
      ],
      "datasourceTemplate": "github-tags",
      "depNameTemplate": "openldap/openldap",
      "versioningTemplate": "semver",
      "extractVersionTemplate": "^OPENLDAP_REL_ENG_(?<major>\\d+)_(?<minor>\\d+)_(?<patch>\\d+)$"
    }
  ]
}
