Misconfiguration
No keys attached: Exploring GitHub-to-AWS keyless authentication flaws
A misconfigured AWS IAM trust policy allowed any GitHub Actions workflow to assume a role and obtain AWS credentials, because a duplicate key in the Terraform policy silently dropped the subject condition. An attacker could then access private CodeCommit repositories, including a UK government account where they could read and potentially push to mirrored private repos.
UK Cabinet Office