From 1acc85c20a24c59e05ef7de522c1a10ba5dbba7c Mon Sep 17 00:00:00 2001 From: CodeRabbit Automation Date: Tue, 12 May 2026 09:56:17 -0700 Subject: [PATCH 1/2] Block fork pull request workflow jobs --- .github/workflows/add_to_octokit_project.yml | 1 + .github/workflows/codeql.yml | 1 + .github/workflows/immediate-response.yml | 2 +- .github/workflows/test.yml | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add_to_octokit_project.yml b/.github/workflows/add_to_octokit_project.yml index 0ac7fd7b4..750dcf3bf 100644 --- a/.github/workflows/add_to_octokit_project.yml +++ b/.github/workflows/add_to_octokit_project.yml @@ -8,6 +8,7 @@ on: jobs: add-to-project: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} name: Add issue to project runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0119b4999..fe50a124f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -10,6 +10,7 @@ on: jobs: CodeQL-Build: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} # CodeQL runs on ubuntu-latest and windows-latest runs-on: ubuntu-latest diff --git a/.github/workflows/immediate-response.yml b/.github/workflows/immediate-response.yml index e8bb8ee5b..d39315f71 100644 --- a/.github/workflows/immediate-response.yml +++ b/.github/workflows/immediate-response.yml @@ -11,7 +11,7 @@ on: - opened jobs: respond-to-issue: - if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }} + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot') }} runs-on: ubuntu-latest steps: - name: Determine issue or PR number diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 042196c8c..650e9c1a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ name: Test - synchronize jobs: test_matrix: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest strategy: matrix: @@ -37,4 +38,4 @@ jobs: cache: npm - run: npm ci - run: npm run lint - if: ${{ always() }} + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (always()) }} From c04d97ef490124a81da73d04e04ef1391e8837ff Mon Sep 17 00:00:00 2001 From: dikshant-coderabbit <162489459+dikshant-coderabbit@users.noreply.github.com> Date: Tue, 12 May 2026 23:06:17 +0530 Subject: [PATCH 2/2] Update .github/workflows/immediate-response.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/immediate-response.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/immediate-response.yml b/.github/workflows/immediate-response.yml index d39315f71..fd40e2255 100644 --- a/.github/workflows/immediate-response.yml +++ b/.github/workflows/immediate-response.yml @@ -11,7 +11,7 @@ on: - opened jobs: respond-to-issue: - if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot') }} + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'github-actions[bot]' && github.actor != 'octokitbot') }} runs-on: ubuntu-latest steps: - name: Determine issue or PR number