Merge pull request #29396 from backstage/djam/github-app-webhook-secret

fix: mark github webhookSecret as optional
This commit is contained in:
Fredrik Adelöw
2025-03-26 11:58:41 +01:00
committed by GitHub
4 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/integration': patch
---
Mark GitHub `webhookSecret` config property as optional. A `webhookSecret` is not required when creating a GitHub App.
+1 -1
View File
@@ -239,7 +239,7 @@ export interface Config {
* The secret used for webhooks
* @visibility secret
*/
webhookSecret: string;
webhookSecret?: string;
/**
* The client ID to use
*/
+1 -1
View File
@@ -647,7 +647,7 @@ export type GiteaIntegrationConfig = {
export type GithubAppConfig = {
appId: number;
privateKey: string;
webhookSecret: string;
webhookSecret?: string;
clientId: string;
clientSecret: string;
allowedInstallationOwners?: string[];
+2 -2
View File
@@ -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',