diff --git a/.github/workflows/review_pipeline.yml b/.github/workflows/review_pipeline.yml index 7f95978c6..e70054088 100644 --- a/.github/workflows/review_pipeline.yml +++ b/.github/workflows/review_pipeline.yml @@ -30,14 +30,18 @@ jobs: repository: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure ref: ReviewAppsDeploy - - name: Create review app infra - uses: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure/.github/workflows/create_review_app_infra.yml@ReviewAppsDeploy - with: - key: ${{ github.event.pull_request.number }} + infra2: + name: Create review app infra + needs: [infra] + uses: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure/.github/workflows/create_review_app_infra.yml@ReviewAppsDeploy + with: + key: ${{ github.event.pull_request.number }} + permissions: + id-token: write code: name: Deploy review app code - needs: [infra] + needs: [infra2] uses: ./.github/workflows/aws_deploy.yml with: aws_account_id: 837698168072