CI/CD permissions and infrastructure — TEMPLATE
What YOUR organization's version has to contain (the structure of the original):
Status: this is the template for the handoff to the infrastructure team: the inventory of servers, agent pools, capabilities and internal feeds belongs to each organization.
/hv:cicd-initwrites an adapted copy inops/cicd/PERMISOS_CICD.md.
What YOUR organization's version has to contain (the structure of the original):
- CI/CD platform collection/organization (
cicd.platform+ URL) and project. - Agent pool(s) — name, type (build vs deploy), servers they run on.
- Deploy routing capabilities — a label per agent (e.g.
DeployTarget=<env>-<type>), aligned withecosystem.config.cicd.environments[].deployTarget. - Service account of the agents and the permissions it needs (local deploy, IIS/systemd, backup folders).
- Internal package feeds — path or URL reachable FROM the agents (not just from the user network).
- Variable groups / secret stores — who creates them, who authorizes pipelines.
- Approvers per environment (
environments[].approvers) and the platform's environments and gates. - Retention and disk — artifact policy (invariant G10).
/hv:cicd-initderives the real values from the configured pool instead of assuming this document: the template is the list of requests to the infrastructure team, not the runtime's source of truth.
GitHub
On GitHub there is no pool to authorize: the handoff is about permissions on the repository and the organization.
| What | Who grants it | What for |
|---|---|---|
| Repository admin | Org owner / current admin | environments and reviewers, secrets and variables, repo rulesets, Actions enabled, security_and_analysis |
| Organization owner | — | org Projects v2, org rulesets, org self-hosted runners, GHAS licences (Code Security / Secret Protection), allowed-Actions policies |
Scopes of the gh token | each developer (gh auth login / gh auth refresh -s <scope>) | repo (base), workflow (dispatch workflows), project (Projects v2), read:org |
| Self-hosted runner | repo admin or org owner (registration token) | deploying to on-premise IIS or private networks; label it (runs-on: [self-hosted, <label>]) |
| Federated credential (OIDC) | admin of the cloud subscription | azure/login / configure-aws-credentials without long-lived secrets (G18) |
| Plan | organization | environment reviewers and restricted branches require a public repo or Team/Enterprise; CodeQL and secret scanning on private repos require GHAS |
Request template: "I need the Admin role on owner/repo to set up environments (dev/pre/pro), secrets and rulesets, and to confirm whether the organization has GHAS so we can turn on CodeQL and secret scanning on private repositories."
Fuente: ovillo/_patron/08_CICD/PERMISOS_CICD_EN.md