I have read access to non-private repos across all organisations on my company's Enterprise GitHub account.
We have specific orgs relating codebases for individual functional 'pillars' of the company, with an org dedicated to the CD process. The CD repos contain links to the specific artifacts to deploy, with names co-responding to the repo name (without the organisation containing that repo) and I need to see the codebase co-responding to the artifact. So, I do not know what organisation a repository resides in, but know the repository name.
In the Github UI, how can I search across all organisations, restricted to ONLY orgs under my enterprise account, for the repository?
I found there is no ideal answer to searching across all orgs but excluding repos outside the account.
However, you can do this in a very complicated way.
If you just put your search criteria in the search toolbar with no org:...
qualifier (assuming looking for 'copyright ME' in any *.md file - "copyright ME" path:**.md
), the entirety of github is searched (including your enterprise account). You need to list each org in your account in the search criteria, so: (org:org1 OR org:org2 OR ...ALL other orgs in your enterprise account...) "copyright ME" path:**.md
.
As I said, it's clunky as you need to list every org on your account. You cannot wildcard this option either, so if all your orgs are prefixed with acme-...
, neither org:acme-*
(sane wildcarding) nor org:acme-.+
(regex wildcarding) will not work. They all need to be listed independantly.