Skip to content

Commit db8d631

Browse files
Enhance CodeQL analysis step to include base reference for improved accuracy
1 parent 16efcc1 commit db8d631

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

azure_pipelines/codeql_analysis_pr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ steps:
3232
codeql-wrapper --verbose analyze ./monorepo \
3333
--monorepo \
3434
--upload-sarif \
35-
--only-changed-files
35+
--only-changed-files \
36+
--ref main --base-ref = "HEAD^"
3637
3738
displayName: "Run CodeQL Analysis"
3839
env:

0 commit comments

Comments
 (0)