Org-wide automation for Open-HMG. The project itself is HMG-API.
team-access.yml runs every hour and gives the core team admin
on any Open-HMG repo where it doesn't have it yet, so a new repo needs no manual step. Archived repos
are skipped. Run it by hand from the Actions tab (Run workflow) after creating a repo.
It uses the CORE_ADMIN_TOKEN secret: a fine-grained token from an org owner, resource owner
Open-HMG, all repositories, with these permissions:
- Repository: Administration (read and write), Metadata (read)
- Organization: Members (read and write)
The token can change access on every repo, so this repo's main is protected and core reviews
every change. Seven days before the token expires, the workflow opens an issue here assigned to
VysseCodes; make a new token, replace the secret, and the next run closes the issue.
GitHub uses files at the top of an org's .github repo (CONTRIBUTING.md, SECURITY.md,
profile/README.md and the like) as defaults for every repo that has none. Don't add any here
unless that's what you want.