Context7 Platform -- Up-to-date docs for AI agents
ci: use OIDC for ECR deployment (#3029)
Fahreddin Özcan449bc6c700a7
diff --git a/.github/workflows/ecr-deploy.yml b/.github/workflows/ecr-deploy.ymlindex 6e849389..9bd10970 100644--- a/.github/workflows/ecr-deploy.yml+++ b/.github/workflows/ecr-deploy.yml@@ -8,6 +8,10 @@ on:required: truetype: string+permissions:+ contents: read+ id-token: write+jobs:build-and-push:runs-on: ubuntu-latest@@ -19,9 +23,11 @@ jobs:- name: Configure AWS credentialsuses: aws-actions/configure-aws-credentials@v6with:- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}+ role-to-assume: ${{ secrets.AWS_ECR_ROLE_ARN }}aws-region: ${{ secrets.AWS_REGION }}+ allowed-account-ids: ${{ secrets.AWS_ACCOUNT_ID }}+ mask-aws-account-id: true+ role-session-name: context7-ecr-${{ github.run_id }}- name: Login to Amazon ECRid: login-ecr