From a681c17e6539714e4496adef85cf3914a18cb3c3 Mon Sep 17 00:00:00 2001 From: Vidhan Bhonsle Date: Wed, 8 Jul 2026 13:36:51 +0530 Subject: [PATCH] Edited `ci.yml` file to incorporate external PR/fork token handling. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c528a85e9af..8b02b35db2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: types: [opened, edited, reopened, closed, synchronize] branches: [main] +permissions: + contents: write + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true @@ -28,6 +31,7 @@ jobs: - name: PR Number run: echo "PR-${{ github.event.pull_request.number }}" - name: Deploy PR Preview + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }} uses: rossjrw/pr-preview-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }}