Interview Prep/GitHub Actions/Secrets, OIDC & Environments

An auditor asks you to prove that no one deployed to prod without approval last quarter. How?

IntermediateScenarioSecrets, OIDC & Environments
Answer

Situation read → Evidence from GitHub and the cloud.

What I'd do →

  1. Export deployments for the prod environment via API (/repos/{o}/{r}/deployments?environment=prod) and their reviews (/actions/runs/{id}/approvals).
  2. Export audit log events for environment rule changes and bypasses.
  3. Correlate with CloudTrail AssumeRoleWithWebIdentity events for the prod role (session name contains run ID) to show every prod session matches an approved run.

Why → Two independent sources make the evidence credible.

Interview tip → Mention setting role-session-name with the run ID to make this correlation possible.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, OIDC & Environments