We’ve recently set up a GitHub App integration in our organization, replacing an earlier integration using GitHub OAuth. We have a Machine User that enables our iOS app’s workflows to access multiple private Swift packages in our GitHub organization but ideally we’d like to move away from this setup and remove the Machine User. My understanding is that a GitHub App installed at the organization level can have access to multiple repositories (at least we’ve granted access to them), can this connection be used for xcodebuild to check out our private dependencies? Since CircleCI is using HTTPS to check out the main iOS repo I feel like it should be possible for it to also access our other repositories that we have granted access to.
Today our Package.swift references our private dependencies using git@github.com:<org-name>/<repo-name> which likely needs changing to https://github.com/<org-name>/<repo-name> but when trying that I get the following error:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Can I set username/password in the global git config in my workflow? If so, are these values documented somewhere?