# Cloud OIDC trust policy for GitHub Actions

Tier 1 key, `key:cloud-oidc-trust`. Page: https://ghtier.com/tier/keys-policies/cloud-oidc-trust

Takes the tier of the cloud role it lets workflows assume. The subject (sub) condition decides which workflows can: a wildcard on the repository, branch or environment lets workflows nobody reviewed assume the role.

**Related permissions:** [OIDC ID token: Write (repository)](https://ghtier.com/tier/permissions/id-token-write.md) (Tier 1)

**Defenses (checklist):** [Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch](https://ghtier.com/checklist/cicd-oidc-federation.md), [Put production secrets in environments with required reviewers](https://ghtier.com/checklist/cicd-environment-reviewers.md)

**Strange findings:** [A workflow can create an environment, without any protection rules](https://ghtier.com/strange-findings/finding-workflow-creates-unprotected-environment.md)

**Sources:**
- [GitHub Docs: OpenID Connect reference](https://docs.github.com/en/actions/reference/security/oidc)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
