diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 06f0110f..43f42751 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -26,7 +26,7 @@ function BuildFileList() { # Switch codebase back to the default branch to get a list of all files changed # ################################################################################# SWITCH_CMD=$( - git -C "$GITHUB_WORKSPACE" pull --quiet + # git -C "$GITHUB_WORKSPACE" pull --quiet git -C "$GITHUB_WORKSPACE" checkout "$DEFAULT_BRANCH" 2>&1 ) diff --git a/lib/worker.sh b/lib/worker.sh index fd3a14f1..eb2ed7e5 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -142,6 +142,9 @@ function LintCodebase() { elif [[ $FILE == *"$TEST_CASE_FOLDER"* ]]; then # This is the test cases, we should always skip continue + elif [[ $FILE == *".git"* ]]; then + # This is likely the .git folder and shouldnt be parsed + continue fi ##############