Skip to content

Commit

Permalink
MAINT: target change
Browse files Browse the repository at this point in the history
Signed-off-by: George Chen <[email protected]>
  • Loading branch information
chenqi0805 committed Nov 27, 2023
1 parent 9e737df commit 18a6eba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/data-prepper-aws-secrets-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: Data Prepper AWS secrets End-to-end test with Gradle
on:
push:
branches: [ main ]
pull_request:
pull_request_target:
types: [ opened, synchronize, reopened ]
workflow_dispatch:
# permission can be added at job level or workflow level
permissions:
Expand All @@ -24,19 +25,21 @@ jobs:
steps:
- name: Git clone the repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: configure aws credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.TEST_IAM_ROLE_ARN }}
aws-region: ${{ vars.TEST_REGION }}
role-to-assume: ${{ secrets.TEST_IAM_ROLE_ARN }}
aws-region: ${{ secrets.TEST_REGION }}
output-credentials: true
- name: get caller identity 1
run: |
aws sts get-caller-identity
- name: Configure AWS Credentials file
run: |
aws configure set default.region ${{ vars.TEST_REGION }}
aws configure set default.region ${{ secrets.TEST_REGION }}
aws configure set default.aws_access_key_id ${{ steps.creds.outputs.aws-access-key-id }}
aws configure set default.aws_secret_access_key ${{ steps.creds.outputs.aws-secret-access-key }}
aws configure set default.aws_session_token ${{ steps.creds.outputs.aws-session-token }}
Expand Down

0 comments on commit 18a6eba

Please sign in to comment.