Skip to main content

Results are different than expected

If your code scanning results are different than you expected, you can check which configurations are active.

If your code scanning results are different than you expected, you may have both default and advanced setup configured for your repository. When you enable default setup, this disables the existing CodeQL workflow file and blocks any CodeQL API analysis from uploading results.

To check if default setup is enabled, navigate to the main page of the repository, then click Settings. In the "Security" section of the sidebar, click Advanced Security. In the "Code scanning" section of the page, next to "CodeQL analysis", click . If there is a Switch to advanced option, you are currently using default setup.

If you want to return to using advanced setup and get code scanning results from your custom workflow file, click Disable CodeQL to disable default setup. Then you should re-enable your pre-existing workflows to start triggering and uploading results from advanced setup. For more information, see 워크플로를 사용/사용하지 않도록 설정 and Configuring advanced setup for code scanning.

경우에 따라 리포지토리에서 여러 code scanning 구성을 사용할 수 있습니다. 이러한 구성은 중복 경고를 생성할 수 있습니다. 또한 더 이상 실행되지 않는 부실 구성은 오래된 경고 상태로 표시되고 부실 경고는 무기한으로 열려 있을 것입니다. 오래된 경고를 방지하려면 분기에서 부실 code scanning 구성을 제거해야 합니다. 여러 구성 및 부실 구성 삭제에 대한 자세한 내용은 코드 검사 경고 정보코드 검사 경고 해결을(를) 참조하세요.