diff --git a/.changeset/sweet-grapes-explain.md b/.changeset/sweet-grapes-explain.md new file mode 100644 index 0000000000..3b75b8849d --- /dev/null +++ b/.changeset/sweet-grapes-explain.md @@ -0,0 +1,8 @@ +--- +'@backstage/integration': minor +--- + +Improved caching around github app tokens. +Tokens are now cached for 50 minutes, not 10. +Calls to get app installations are also included in this cache. +If you have more than one github app configured, consider adding `allowedInstallationOwners` to your apps configuration to gain the most benefit from these performance changes. diff --git a/docs/integrations/github/github-apps.md b/docs/integrations/github/github-apps.md index 4f2c58bbec..38459acf75 100644 --- a/docs/integrations/github/github-apps.md +++ b/docs/integrations/github/github-apps.md @@ -98,7 +98,9 @@ integrations: ### Limiting the GitHub App installations If you want to limit the GitHub app installations visible to backstage you may -optionally include the `allowedInstallationOwners` option. +optionally include the `allowedInstallationOwners` option. If you configure +multiple apps, specifying this will bring some small performance benefits +as backstage can more easily select which app to use for a url. ```yaml appId: app id