Skip to content

feat(configure-aws-credentials): wrap the official AWS action - #269

Merged
joakimen merged 1 commit into
masterfrom
feat/configure-aws-credentials-wrap-aws-action
Sep 15, 2026
Merged

joakimen merged 1 commit into
masterfrom
feat/configure-aws-credentials-wrap-aws-action

Conversation

@joakimen

@joakimen joakimen commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Replaces a hand-rolled OIDC exchange, retry loop and STS call with aws-actions/configure-aws-credentials, pinned by SHA. Inputs, outputs and the default of keeping credentials out of the job environment are unchanged.

AWS_REGION is exported by a step of its own: the wrapped action exports the region only when it also exports credentials, so relying on it would have stopped the region reaching later steps in every repository that takes the default.

Behaviour

A failure takes longer to surface — twelve retries with backoff rather than three, five seconds apart, and on any error rather than only a transient one.

For the three repositories that ask for credentials in the environment, the wrapped action adds a post-job step that unsets them, and also sets AWS_DEFAULT_REGION.

@joakimen
joakimen force-pushed the feat/configure-aws-credentials-wrap-aws-action branch from df84fec to 01b6ca1 Compare September 15, 2026 09:46
@joakimen
joakimen force-pushed the feat/configure-aws-credentials-wrap-aws-action branch from 01b6ca1 to 6da4239 Compare September 15, 2026 10:27
@joakimen
joakimen force-pushed the feat/configure-aws-credentials-wrap-aws-action branch from 6da4239 to 8b817fd Compare September 15, 2026 10:44
Replaces a hand-rolled OIDC exchange, retry loop and STS call with
aws-actions/configure-aws-credentials, pinned by SHA.

AWS_REGION is exported by a step of its own, because the wrapped action exports
it only when it also exports credentials, which is off by default here. A test
asserts the credentials themselves stay out of the job environment, which is
what all but three of the repositories using this rely on.

The two inputs without defaults are still checked, so a missing one says which
rather than composing a role ARN that fails as an opaque STS error.

A failure takes a minute or two to surface rather than fifteen seconds: the
wrapped action retries twelve times with backoff, on any error rather than only
a transient one.

Inputs, outputs and keeping credentials out of the job environment are
unchanged.
@joakimen
joakimen force-pushed the feat/configure-aws-credentials-wrap-aws-action branch from 8b817fd to 43c159a Compare September 15, 2026 13:02
@joakimen
joakimen merged commit 6ff0102 into master Sep 15, 2026
4 checks passed
@joakimen
joakimen deleted the feat/configure-aws-credentials-wrap-aws-action branch September 15, 2026 13:04
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant