From 1f15ff18fd506ba004d15e53371b3efcc1c3dc29 Mon Sep 17 00:00:00 2001 From: oh0387 Date: Tue, 18 Jul 2023 14:09:27 +0530 Subject: [PATCH] specify `repository` during checkout step This is needed when PR is raised from fork branch. In this case repository will be fork repo --- .github/workflows/semgrep.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index a3ac7c54f9f..565bb9b871a 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -13,6 +13,7 @@ jobs: with: fetch-depth: 0 ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - name: Calculate diff id: calculate_diff