Merge pull request #17722 from aochsner/feature/scaffolder-github-variables-secrets

Add Repository Variables and Secrets
This commit is contained in:
Fredrik Adelöw
2023-05-30 09:32:06 +02:00
committed by GitHub
14 changed files with 355 additions and 106 deletions
@@ -174,8 +174,10 @@ class GithubAppManager {
const allInstallations = await this.getInstallations();
const installation = allInstallations.find(
inst =>
inst.account?.login?.toLocaleLowerCase('en-US') ===
owner.toLocaleLowerCase('en-US'),
inst.account &&
'login' in inst.account &&
inst.account.login?.toLocaleLowerCase('en-US') ===
owner.toLocaleLowerCase('en-US'),
);
if (installation) {
return {