GitHub
Parameters
The GitHub notification service changes commit status using GitHub Apps and requires specifying the following settings:
appID- the app idinstallationID- the app installation idprivateKey- the app private keyenterpriseBaseURL- optional URL, e.g. https://git.example.com/
Configuration
- Create a GitHub Apps using https://github.com/settings/apps/new
- Change repository permissions to enable write commit statuses and/or deployments

- Generate a private key, and download it automatically

- Install app to account
- Store privateKey in
argocd-notifications-secretSecret and configure GitHub integration inargocd-notifications-cmConfigMap
apiVersion: v1kind: ConfigMapmetadata:name: <config-map-name>data:service.github: |appID: <app-id>installationID: <installation-id>privateKey: $github-privateKey
apiVersion: v1kind: Secretmetadata:name: <secret-name>stringData:github-privateKey: |-----BEGIN RSA PRIVATE KEY-----(snip)-----END RSA PRIVATE KEY-----
- Create subscription for your GitHub integration
apiVersion: argoproj.io/v1alpha1kind: Applicationmetadata:annotations:notifications.argoproj.io/subscribe.<trigger-name>.github: ""
Templates

template.app-deployed: |message: |Application {{.app.metadata.name}} is now running new version of deployments manifests.github:repoURLPath: "{{.app.spec.source.repoURL}}"revisionPath: "{{.app.status.operationState.syncResult.revision}}"status:state: successlabel: "continuous-delivery/{{.app.metadata.name}}"targetURL: "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true"deployment:state: successenvironment: productionenvironmentURL: "https://{{.app.metadata.name}}.example.com"logURL: "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true"requiredContexts: []autoMerge: true
Notes: - If the message is set to 140 characters or more, it will be truncated. - If github.repoURLPath and github.revisionPath are same as above, they can be omitted. - Automerge is optional and true by default for github deployments to ensure the requested ref is up to date with the default branch. Setting this option to false is required if you would like to deploy older refs in your default branch. For more information see the Github Deployment API Docs.