From 9c79ee0fc061c1ee163f1e4289bb0e85fa8be826 Mon Sep 17 00:00:00 2001 From: VincyZhang Date: Fri, 22 Nov 2024 10:53:12 +0800 Subject: [PATCH] Update pr-code-scan.yml --- .github/workflows/pr-code-scan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-code-scan.yml b/.github/workflows/pr-code-scan.yml index 13f5168632..90c852b5de 100644 --- a/.github/workflows/pr-code-scan.yml +++ b/.github/workflows/pr-code-scan.yml @@ -42,7 +42,7 @@ jobs: echo "github head ref is ${{ github.head_ref }}" echo "github base ref is ${{ github.base_ref }}" echo "github merge ref is refs/pull/${{ github.event.number }}/merge" - git fetch + git fetch origin main git branch git diff FETCH_HEAD --name-status cd ${{ github.workspace }} && bash -x .github/workflows/scripts/check_cmd_injection.sh