diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 8ab6a7e7bd5..982fcd94a0c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -11,9 +11,22 @@ jobs: CTF_LOG_LEVEL: info CTF_LOKI_STREAM: "false" PRIVATE_KEY: ${{ secrets.CTF_SIMULATED_KEY_1 }} + permissions: + id-token: write + contents: read steps: - name: Check out code uses: actions/checkout@v3 + - name: Configure AWS credentials using OIDC + uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 + with: + role-to-assume: ${{ secrets.PUBLIC_AWS_ECR_ROLE }} + aws-region: us-east-1 + - name: Authenticate to ECR Public + id: login-ecr-public + uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1 + with: + registry-type: public - name: Set up Go uses: actions/setup-go@v4 with: