Skip to content

Add AWS OIDC configuration action - #113

Merged
sarasvoss merged 1 commit into
mainfrom
feature/configure-aws-oidc
Aug 11, 2026
Merged

Add AWS OIDC configuration action#113
sarasvoss merged 1 commit into
mainfrom
feature/configure-aws-oidc

Conversation

@sarasvoss

Copy link
Copy Markdown
Contributor

Summary

  • add a versioned configure-aws-oidc composite action
  • create a sanitized AWS role session name, resolve the role ARN and region, and configure temporary credentials through GitHub OIDC
  • document the resolver's workspace side effect, required checkout ordering, credential-only usage, and the 1.0.0 release contract

Why

Consumers currently repeat the same credential-orchestration steps and must keep their wiring, session naming, and dependency pins consistent. This action provides one supported same-job integration point while preserving the existing resolver behavior.

Consumer impact

Consumers can replace the same-job role-resolution and credential-configuration sequence with this action. Because the role resolver checks out its own repository, workflows that need consumer source must run checkout after this action.

Validation

  • npm run check
  • required Husky pre-commit hook
  • YAML parsing and version-label validation

Semgrep completed successfully and reported one pre-existing mutable action-tag finding in .github/actions/upsert-pr-comment/action.yml; this change pins all of its action dependencies to immutable commit SHAs.

@sarasvoss sarasvoss added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 11, 2026
@sarasvoss
sarasvoss requested a review from a team as a code owner August 11, 2026 21:07
@sarasvoss sarasvoss added the version:actions/configure-aws-oidc/1.0.0 Release configure-aws-oidc action version 1.0.0 label Aug 11, 2026
Copilot AI lite review requested due to automatic review settings August 11, 2026 21:07
@github-actions

Copy link
Copy Markdown

Tags

The following tags will be created on main after merge

🏷️ actions/configure-aws-oidc/1.0.0

@sarasvoss
sarasvoss merged commit 37aebd2 into main Aug 11, 2026
7 checks passed
@sarasvoss
sarasvoss deleted the feature/configure-aws-oidc branch August 11, 2026 21:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new, versioned composite GitHub Action (configure-aws-oidc) that standardizes AWS role session naming, role/region resolution via get-role-arn, and credential configuration via GitHub OIDC, with accompanying documentation and release notes.

Changes:

  • Introduces .github/actions/configure-aws-oidc composite action to orchestrate session-name creation, role resolution, and credential configuration.
  • Documents required permissions, workspace side effects (resolver checkout), and recommended checkout ordering for consumers.
  • Adds an initial 1.0.0 changelog entry describing the new behavior and outputs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/actions/configure-aws-oidc/action.yml New composite action wiring session-name creation + role resolution + configure-aws-credentials, with pinned SHAs.
.github/actions/configure-aws-oidc/README.md Usage docs, permissions, inputs/outputs, and guidance around workspace side effects and checkout ordering.
.github/actions/configure-aws-oidc/CHANGELOG.md Initial 1.0.0 release notes for the new composite action.
Suppressed comments (1)

.github/actions/configure-aws-oidc/README.md:44

  • The outputs table is formatted with an extra leading pipe (|| ...), which renders as an empty first column in Markdown. Remove the extra | so the table renders correctly.
| Name                | Description                      |
| ------------------- | -------------------------------- |
| `role-arn`          | Resolved AWS role ARN.           |
| `region`            | Resolved AWS region.             |
| `role-session-name` | Sanitized AWS role session name. |

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +27 to +35
| Name | Required | Description |
| ----------------------- | -------- | ---------------------------------------------------------------------- |
| `domain` | Yes | Domain forwarded to the AWS role resolver. |
| `environment` | Yes | Environment forwarded to the resolver and role-session-name creator. |
| `action` | Yes | Operation label included in the role session name. |
| `run-id` | Yes | GitHub Actions run ID included in the role session name. |
| `actor` | Yes | Triggering GitHub actor included in the role session name. |
| `ORG_READ_ONLY_SSH_KEY` | Yes | Private SSH key required by `OpenSesame/gha-oidc-access/get-role-arn`. |

Comment on lines +69 to +72
# Required when later steps need files from the consumer repository.
- name: Checkout consumer repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request version:actions/configure-aws-oidc/1.0.0 Release configure-aws-oidc action version 1.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants