From 96862d6a531cd58c37a594a37104373e975c7288 Mon Sep 17 00:00:00 2001 From: khushalsonawat Date: Tue, 18 Aug 2026 10:15:56 +0530 Subject: [PATCH] ci: drop the unused chat-widget fetch so fork PRs pass checks - @futureagi/chat-widget is imported nowhere in the source and absent from package-lock.json; remove the vestigial workspace dependency - pr-checks: the audit scripts use only Node built-ins, so drop the private-repo clone, the dependency patch and npm install entirely. Fork PRs never receive repo secrets, which is why every external contribution failed this check at the clone step - deploy: drop the now-inert fetch and patch steps, removing the workflow's last dependence on the GH_PAT secret Signed-off-by: khushalsonawat --- .github/workflows/deploy.yml | 13 ------------- .github/workflows/pr-checks.yml | 23 ++--------------------- package.json | 1 - 3 files changed, 2 insertions(+), 35 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 107c3bbb5..9ee85452d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,19 +17,6 @@ jobs: with: node-version: '20' - # Fetch the chat-widget from the landing-page repo (pre-built dist is committed) - - name: Fetch @futureagi/chat-widget - run: | - git clone --depth 1 \ - https://x-access-token:${{ secrets.GH_PAT }}@github.com/future-agi/landing-page.git .landing-tmp - cp -r .landing-tmp/docs-agent/packages/chat-widget ./chat-widget - rm -rf .landing-tmp - - # Replace workspace:* with local file reference so npm can install it - - name: Patch chat-widget dependency - run: | - sed -i 's|"@futureagi/chat-widget": "workspace:\*"|"@futureagi/chat-widget": "file:./chat-widget"|' package.json - - name: Cache npm dependencies uses: actions/cache@v4 with: diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index bf912b578..99fe72cf9 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -19,27 +19,8 @@ jobs: with: node-version: '20' - - name: Fetch @futureagi/chat-widget - run: | - git clone --depth 1 \ - https://x-access-token:${{ secrets.GH_PAT }}@github.com/future-agi/landing-page.git .landing-tmp - cp -r .landing-tmp/docs-agent/packages/chat-widget ./chat-widget - rm -rf .landing-tmp - - - name: Patch chat-widget dependency - run: | - sed -i 's|"@futureagi/chat-widget": "workspace:\*"|"@futureagi/chat-widget": "file:./chat-widget"|' package.json - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json', 'package.json') }} - restore-keys: ${{ runner.os }}-npm- - - - name: Install dependencies - run: npm install - + # The audit scripts use only Node built-ins: no install, no secrets, + # so this job also runs on fork PRs, which never receive repo secrets - name: Check broken nav & content links run: node scripts/audit-links.mjs diff --git a/package.json b/package.json index ca5a3a6e7..e8c55a42a 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "@astrojs/mdx": "^4.3.12", "@astrojs/react": "^4.3.1", "@astrojs/sitemap": "^3.6.0", - "@futureagi/chat-widget": "workspace:*", "@giscus/react": "^3.1.0", "@tailwindcss/vite": "^4.1.17", "astro": "^5.16.3",