Interview Prep/GitHub Actions/OIDC & Cloud Authentication

Assumed-role credentials expire mid-job: `ExpiredToken: The security token included in the request is expired`

IntermediateTroubleshootingOIDC & Cloud Authentication
Answer

Likely causes → The job runs longer than the session duration (default 1 hour), for example long Terraform applies or big image builds.

Diagnose → Compare job duration with role-duration-seconds.

Fix → Set role-duration-seconds: 7200 and raise the role's MaxSessionDuration, or re-run configure-aws-credentials before the late steps.

Prevent → Split long jobs; authenticate right before the cloud steps.

All GitHub Actions questions Roadmap: GitHub Actions

More on OIDC & Cloud Authentication