diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e34c591..b3fdfce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,12 @@ on: env: JAVA_VERSION: 17 JAVA_DISTRO: zulu - + AWS_REGION: us-east-1 + +permissions: + id-token: write # This is required for requesting the JWT + contents: read + jobs: pipeline-test: name: Pipeline tests @@ -50,6 +55,7 @@ jobs: workflow-test: name: Workflow tests runs-on: ubuntu-latest + needs: module-test steps: - uses: actions/checkout@v4 @@ -72,6 +78,16 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 # More information on this action can be found below in the 'AWS Credentials' section + with: + role-to-assume: arn:aws:iam::566365074765:role/github-actions-role + aws-region: ${{ env.AWS_REGION }} + - name: Login to Amazon ECR Public + id: login-ecr-public + uses: aws-actions/amazon-ecr-login@v2 + with: + registry-type: public - name: Set up Java uses: actions/setup-java@v4 with: