diff --git a/.changeset/purple-rocks-explode.md b/.changeset/purple-rocks-explode.md index 4969a42a6b..86f575e317 100644 --- a/.changeset/purple-rocks-explode.md +++ b/.changeset/purple-rocks-explode.md @@ -2,4 +2,4 @@ '@backstage/integration': patch --- -Fixed bug on when compared in organzation name on github +Fixed bug for comparing Organization name in `GithubCredentialsProvider` diff --git a/packages/integration/src/github/GithubCredentialsProvider.ts b/packages/integration/src/github/GithubCredentialsProvider.ts index 36cb0ef14d..ba30900358 100644 --- a/packages/integration/src/github/GithubCredentialsProvider.ts +++ b/packages/integration/src/github/GithubCredentialsProvider.ts @@ -129,7 +129,7 @@ class GithubAppManager { private async getInstallationData(owner: string): Promise { const allInstallations = await this.getInstallations(); const installation = allInstallations.find( - inst => inst.account?.login.toLowerCase() === owner.toLowerCase(), + inst => inst.account?.login?.toLowerCase() === owner.toLowerCase(), ); if (installation) { return {