Github App Kubernetes Credentials

This is a Kubernetes Credentials Provider adapter of Github App Credential

A valid secret yaml file

apiVersion: v1
kind: Secret
metadata:
  # this is the jenkins id.
  name: "githubapp-jenkins"
  labels:
    # so we know what type it is.
    "jenkins.io/credentials-type": "githubApp"
  annotations:
    # description - can not be a label as spaces are not allowed
    "jenkins.io/credentials-description": "credentials from Kubernetes"
type: Opaque
stringData:
  appId: "12"     #12
  privateKey: |
    -----BEGIN PRIVATE KEY-----
    the content of proviate key
    -----END PRIVATE KEY-----
  apiUri: https://enterprise.github.host/api/v3
  owner: org-name