{
  "description": "GithubAccessToken generates ghs_ accessToken",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "GithubAccessTokenSpec defines the desired state to generate a GitHub access token.",
      "properties": {
        "appID": {
          "type": "string"
        },
        "auth": {
          "description": "Auth configures how ESO authenticates with a Github instance.",
          "properties": {
            "privateKey": {
              "description": "GithubSecretRef references a secret containing GitHub credentials.",
              "properties": {
                "secretRef": {
                  "description": "SecretKeySelector is a reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.",
                  "properties": {
                    "key": {
                      "description": "A key in the referenced Secret.\nSome instances of this field may be defaulted, in others it may be required.",
                      "maxLength": 253,
                      "minLength": 1,
                      "pattern": "^[-._a-zA-Z0-9]+$",
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the Secret resource being referred to.",
                      "maxLength": 253,
                      "minLength": 1,
                      "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                      "type": "string"
                    },
                    "namespace": {
                      "description": "The namespace of the Secret resource being referred to.\nIgnored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "secretRef"
              ],
              "type": "object",
              "additionalProperties": false
            }
          },
          "required": [
            "privateKey"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "installID": {
          "type": "string"
        },
        "permissions": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map of permissions the token will have. If omitted, defaults to all permissions the GitHub App has.",
          "type": "object"
        },
        "repositories": {
          "description": "List of repositories the token will have access to. If omitted, defaults to all repositories the GitHub App\nis installed to.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "url": {
          "description": "URL configures the GitHub instance URL. Defaults to https://github.com/.",
          "type": "string"
        }
      },
      "required": [
        "appID",
        "auth",
        "installID"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
