The short answer

Give deployment jobs narrowly scoped, temporary cloud access where supported. Define which workload may obtain credentials, what those credentials allow and who approves production changes. Check the actual identity claims, test rejected requests and retire superseded keys through a controlled handover.

At a glance

  • Use supported workload federation to obtain temporary cloud credentials with a defined scope.
  • Review the trusted workload separately from the cloud actions its role permits.
  • Verify current identity claims, test denied requests and retire superseded keys carefully.

The job ended. The standing access didn't.

At nine, a release job publishes an update to a public portal. The smoke check passes and the engineer moves on. Months later, the project has changed hands, but the reusable cloud key stored for that job still works. Picture a fictional delivery team, not a reported Invade Core deployment. The useful question is about the authority left behind: which jobs can still use that key, which resources can they change, and who would notice that the original reason for access has ended? A successful release tells us that the job could publish. It leaves the lifetime of its credentials as a separate design decision.

Give the run its own credential

GitHub's OpenID Connect guidance describes a different arrangement for supported cloud providers. After a trust relationship is established, a workflow can present evidence of its identity and obtain a short-lived cloud credential instead of keeping a long-lived cloud secret in GitHub. In plain language, the job asks for access when it needs it, under conditions the receiving service checks. Our recommendation is to consider that arrangement for a new deployment connection before copying another permanent key into a settings screen. Confirm the provider's supported flow and session lifetime. Temporary credentials still need carefully defined permissions while they are valid.[1]

Decide who may enter and what they may do

AWS's IAM guidance makes the receiving side concrete. Its GitHub OIDC role guidance recommends limiting who can assume a role through trust-policy conditions tied to the intended organisation, repositories or branches. The same role-creation process separately assigns permissions policies. Those are two useful questions for the product team: which workload may get in, and what may it do afterwards? For our fictional portal, we would begin with the particular deployment destination and required actions. Publishing one application's assets should have a clear scope. Ask the responsible cloud engineer to explain that scope in terms the service owner can review.[2]

Check the identity format your repository uses

There is also a current detail worth checking before copying an older setup. GitHub's OIDC reference says repositories created after 15 July 2026 use a default subject format containing immutable owner and repository IDs. Older repositories can retain the previous format unless they opt in; the rollout excludes GitHub Enterprise Server. A cloud trust policy must match the format the repository actually uses. Our practical response is to verify the relevant claims against current documentation during setup and after an identity change. An authentication failure is a reason to investigate that agreement, rather than broadening the policy until the error disappears.[3]

Keep the release decision visible

Keep the release decision visible alongside this identity work. GitHub's AWS guide explains that the workflow permission id-token: write allows requesting an OIDC token; it does not itself grant permission to modify resources. The guide also recommends environment protection rules. We would make the production route identify the reviewed revision, permitted deployment context and person responsible for the release policy. A workflow that can obtain a temporary credential still needs appropriate control over the code it runs. Give the operating team a short explanation of how a proposed change becomes an authorised production change, including the cases that should be stopped.[4]

Test the permission that should fail

In a suitable test environment, run an allowed deployment and a request outside the agreed trust conditions. Check that an attempt to change an unrelated resource is also rejected. Retain useful evidence such as the run identifier, revision, cloud role and destination, while keeping credentials out of diagnostic output. Ask another engineer to investigate a deliberately failed request using that record. During a real migration, identify any remaining consumers before retiring an old key under the agreed change process. The result worth demonstrating is understandable authority: a particular job can complete its task, its access has a bounded lifetime, and the team can explain the limits.

“Cybersecurity cannot remain a department that tells us what went wrong yesterday. It has to become an intelligence system that understands what is happening now—and helps us act before a threat becomes a crisis.”

Sources and further reading

  1. GitHub Docs — OpenID Connect: trust relationships and short-lived cloud credentials ↗
  2. AWS IAM — OIDC role creation: permissions policies and GitHub trust-policy restrictions ↗
  3. GitHub Docs — OpenID Connect reference: immutable subject claims and the 15 July 2026 rollout ↗
  4. GitHub Docs — OIDC in AWS: token-request permissions and environment protection ↗

Put the perspective into practice.

Explore Security & Technology Intelligence