Skip to content

Commit 4e4c544

Browse files
scarmuegaclaude
andcommitted
ci(e2e): assume the AWS role via GitHub OIDC instead of static keys
The OuraE2ETest role's trust path no longer matches static IAM user keys (the `security token invalid` failures). Switch the aws legs to keyless OIDC: add `id-token: write` and drop `aws-access-key-id`/`aws-secret-access-key` so configure-aws-credentials uses AssumeRoleWithWebIdentity. Requires (AWS side): an IAM OIDC provider for token.actions.githubusercontent.com and a trust policy on OuraE2ETest allowing this repo's workflow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3b53307 commit 4e4c544

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

.github/.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/e2e.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
permissions:
4545
contents: read
4646
packages: read
47+
id-token: write # mint the GitHub OIDC token for AWS role assumption
4748
strategy:
4849
fail-fast: false
4950
matrix:
@@ -83,13 +84,15 @@ jobs:
8384
run: docker pull "$TARGET_IMAGE"
8485

8586
# --- AWS credentials (s3 / sqs / lambda sinks) ---------------------------
87+
# Keyless via GitHub OIDC: the runner mints an OIDC token and assumes
88+
# OuraE2ETest with AssumeRoleWithWebIdentity (no static secrets). Requires
89+
# an IAM OIDC provider for token.actions.githubusercontent.com and a trust
90+
# policy on OuraE2ETest allowing this repo.
8691
- name: Configure AWS credentials
8792
if: matrix.kind == 'aws'
8893
uses: aws-actions/configure-aws-credentials@v4
8994
with:
9095
aws-region: us-west-2
91-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
92-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
9396
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/OuraE2ETest
9497
role-session-name: Github-e2e-Rollout
9598
role-duration-seconds: 3600

0 commit comments

Comments
 (0)