Skip to content

chore(ci): migrate GitHub Actions to OIDC auth#609

Open
jonthia-drift wants to merge 1 commit into
mainnet-betafrom
chore/gha-oidc-migration-mainnet-beta
Open

chore(ci): migrate GitHub Actions to OIDC auth#609
jonthia-drift wants to merge 1 commit into
mainnet-betafrom
chore/gha-oidc-migration-mainnet-beta

Conversation

@jonthia-drift
Copy link
Copy Markdown
Contributor

Replaces long-lived AWS_ACCESS_KEY_* secrets with short-lived STS credentials via GitHub OIDC.

Changes

  • Add workflow-level permissions: { id-token: write, contents: read }
  • Replace aws-access-key-id / aws-secret-access-key with role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_PROD/NONPROD }}
  • Pin floating action refs to commit SHAs

Prerequisites before merge

  1. Set GitHub org-level variables AWS_DEPLOY_ROLE_PROD and AWS_DEPLOY_ROLE_NONPROD (role ARNs).
  2. Update the IAM role trust policy in each account to include this repo's sub claims (will be applied centrally as part of the migration).

CI on this PR is expected to fail at the AWS credentials step until both of the above are in place.

Replace long-lived AWS_ACCESS_KEY_* secrets with sts:AssumeRoleWithWebIdentity
via GitHub OIDC.

- Add workflow-level permissions (id-token: write, contents: read)
- Replace aws-access-key-id/aws-secret-access-key with role-to-assume
- Reference org-level vars AWS_DEPLOY_ROLE_PROD / AWS_DEPLOY_ROLE_NONPROD
- Pin floating action refs to commit SHAs
@jonthia-drift jonthia-drift force-pushed the chore/gha-oidc-migration-mainnet-beta branch from 9638016 to b340b32 Compare May 19, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant