Merge pull request #29396 from backstage/djam/github-app-webhook-secret
fix: mark github webhookSecret as optional
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/integration': patch
|
||||
---
|
||||
|
||||
Mark GitHub `webhookSecret` config property as optional. A `webhookSecret` is not required when creating a GitHub App.
|
||||
Vendored
+1
-1
@@ -239,7 +239,7 @@ export interface Config {
|
||||
* The secret used for webhooks
|
||||
* @visibility secret
|
||||
*/
|
||||
webhookSecret: string;
|
||||
webhookSecret?: string;
|
||||
/**
|
||||
* The client ID to use
|
||||
*/
|
||||
|
||||
@@ -647,7 +647,7 @@ export type GiteaIntegrationConfig = {
|
||||
export type GithubAppConfig = {
|
||||
appId: number;
|
||||
privateKey: string;
|
||||
webhookSecret: string;
|
||||
webhookSecret?: string;
|
||||
clientId: string;
|
||||
clientSecret: string;
|
||||
allowedInstallationOwners?: string[];
|
||||
|
||||
@@ -92,7 +92,7 @@ export type GithubAppConfig = {
|
||||
/**
|
||||
* Webhook secret can be configured at https://github.com/organizations/$org/settings/apps/$AppName
|
||||
*/
|
||||
webhookSecret: string;
|
||||
webhookSecret?: string;
|
||||
/**
|
||||
* Found at https://github.com/organizations/$org/settings/apps/$AppName
|
||||
*/
|
||||
@@ -128,7 +128,7 @@ export function readGithubIntegrationConfig(
|
||||
appId: c.getNumber('appId'),
|
||||
clientId: c.getString('clientId'),
|
||||
clientSecret: c.getString('clientSecret'),
|
||||
webhookSecret: c.getString('webhookSecret'),
|
||||
webhookSecret: c.getOptionalString('webhookSecret'),
|
||||
privateKey: c.getString('privateKey'),
|
||||
allowedInstallationOwners: c.getOptionalStringArray(
|
||||
'allowedInstallationOwners',
|
||||
|
||||
Reference in New Issue
Block a user