File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed
Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Continuous Integration tests
2+
3+ on :
4+ pull_request :
5+ push :
6+
7+ jobs :
8+ ci_tests :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ id-token : write
12+ contents : read
13+
14+ steps :
15+ - name : Configure AWS Credentials
16+ uses : aws-actions/configure-aws-credentials@v1
17+ with :
18+ role-to-assume : arn:aws:iam::370957321024:role/service-role/S3EC-GitHub-test-role
19+ role-session-name : S3EC-Github-CI-Tests
20+ aws-region : us-west-2
21+
22+ - uses : actions/checkout@v3
23+ # run all test cases
24+ - name : Run S3EC Test Cases
25+ run : |
26+ export AWS_S3EC_TEST_BUCKET=s3ec-github-test-bucket
27+ export AWS_S3EC_TEST_KMS_KEY_ID=arn:aws:kms:us-west-2:370957321024:key/c3eafb5f-e87d-4584-9400-cf419ce5d782
28+ export AWS_S3EC_TEST_KMS_KEY_ALIAS=arn:aws:kms:us-west-2:370957321024:alias/S3EC-Github-KMS-Key
29+ export AWS_REGION=us-west-2
30+ mvn -B -ntp test
Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ Resources:
8888 "Action": "sts:AssumeRoleWithWebIdentity",
8989 "Condition": {
9090 "StringEquals": {
91- "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
91+ "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
9292 },
9393 "StringLike": {
94- "token.actions.githubusercontent.com:sub": "repo:aws/aws-s3-encryption-client-java:ref:refs/ *"
94+ "token.actions.githubusercontent.com:sub": "repo:aws/aws-s3-encryption-client-java:*"
9595 }
9696 }
9797 }
You can’t perform that action at this time.
0 commit comments