Skip to content

Commit 967517d

Browse files
Fix CodeQL analysis step to clear REF variable in non-pull request context
1 parent 187f498 commit 967517d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circle_ci/codeql_analysis_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
else
4141
echo "Running in a non-pull request context"
4242
BASE_REF="HEAD^"
43-
REF=$CIRCLE_BRANCH
43+
REF=""
4444
fi
4545
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user
4646
codeql-wrapper --verbose analyze ./monorepo \

0 commit comments

Comments
 (0)