Skip to content

Commit 6423a8e

Browse files
committed
ci: assume wstd-aws-ci-role
1 parent fb836a7 commit 6423a8e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,27 @@ jobs:
3838
command: test
3939
args: -p wstd --target wasm32-wasip2 -- --nocapture
4040

41+
# pchickey made a role and bucket on his personal aws account
42+
# it only provides ListBucket and GetObject for a single bucket
43+
- name: Configure AWS Credentials
44+
id: creds
45+
uses: aws-actions/[email protected]
46+
with:
47+
aws-region: us-west-2
48+
role-to-assume: arn:aws:iam::313377415443:role/wstd-aws-ci-role
49+
role-session-name: github-ci
50+
4151
- name: example tests
4252
uses: actions-rs/cargo@v1
4353
with:
4454
command: test
4555
args: -p test-programs -- --nocapture
46-
56+
env:
57+
AWS_REGION: us-west-2
58+
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
59+
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
60+
AWS_SESSION_TOKEN: ${{ steps.creds.outputs.aws-session-token }}
61+
WSTD_EXAMPLE_BUCKET: wstd-example-bucket
4762

4863
check_fmt_and_docs:
4964
name: Checking fmt and docs

aws/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.environment

0 commit comments

Comments
 (0)