Context7 Platform -- Up-to-date docs for AI agents
ci: use OIDC for Bedrock tests (#3031)
Fahreddin Özcan7274d720fbc4
diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 3100beaf..f199cfca 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -19,6 +19,10 @@ concurrency:group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true+permissions:+ contents: read+ id-token: write+jobs:test:runs-on: ubuntu-latest@@ -64,9 +68,17 @@ jobs:- name: Typecheckrun: pnpm typecheck+ - name: Configure AWS credentials+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository+ uses: aws-actions/configure-aws-credentials@v6+ with:+ role-to-assume: ${{ secrets.AWS_BEDROCK_ROLE_ARN }}+ aws-region: ${{ secrets.AWS_REGION }}+ allowed-account-ids: ${{ secrets.AWS_ACCOUNT_ID }}+ mask-aws-account-id: true+ role-session-name: context7-bedrock-${{ github.run_id }}+- name: Testrun: pnpm testenv:- AWS_REGION: ${{ secrets.AWS_REGION }}- AWS_BEARER_TOKEN_BEDROCK: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }}CONTEXT7_API_KEY: ${{ secrets.CONTEXT7_API_KEY }}diff --git a/packages/tools-ai-sdk/src/index.test.ts b/packages/tools-ai-sdk/src/index.test.tsindex 6302f54f..591aac53 100644--- a/packages/tools-ai-sdk/src/index.test.ts+++ b/packages/tools-ai-sdk/src/index.test.ts@@ -13,7 +13,6 @@ import {const bedrock = createAmazonBedrock({region: process.env.AWS_REGION,- apiKey: process.env.AWS_BEARER_TOKEN_BEDROCK,});describe("@upstash/context7-tools-ai-sdk", () => {