diff --git a/.github/actions/e2e_cleanup_timeframe/action.yml b/.github/actions/e2e_cleanup_timeframe/action.yml index 17362f3de..f51785d2c 100644 --- a/.github/actions/e2e_cleanup_timeframe/action.yml +++ b/.github/actions/e2e_cleanup_timeframe/action.yml @@ -8,10 +8,29 @@ inputs: encryptionSecret: description: 'The secret to use for decrypting the artifacts.' required: true + azure_credentials: + description: "Credentials authorized to create Constellation on Azure." + required: true runs: using: "composite" steps: + - name: Authenticate AWS + uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 + with: + role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster + aws-region: eu-central-1 + + - name: Authenticate Azure + uses: ./.github/actions/login_azure + with: + azure_credentials: ${{ inputs.azure_credentials }} + + - name: Authenticate GCP + uses: ./.github/actions/login_gcp + with: + service_account: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com" + - name: Install unzip uses: ./.github/actions/setup_bazel_nix with: diff --git a/.github/workflows/e2e-cleanup-weekly.yml b/.github/workflows/e2e-cleanup-weekly.yml index 4edeca5ee..07a5e2422 100644 --- a/.github/workflows/e2e-cleanup-weekly.yml +++ b/.github/workflows/e2e-cleanup-weekly.yml @@ -20,3 +20,4 @@ jobs: with: ghToken: ${{ secrets.GITHUB_TOKEN }} encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }} + azure_credentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }}