Prerequisites
For the repository properties described here to have an effect, you need to have set up code scanning. See 코드 검색을 위한 설정 유형 정보.
Repository properties which affect code scanning must be created manually for your organization. You can then set values for them that apply to your entire organization or allow them to be configured differently for each repository. See 조직의 리포지토리에 대한 사용자 지정 속성 관리.
Supported repository properties for code scanning
Some code scanning functionality can be configured using repository properties. Organizations can use repository properties to both enforce configurations across all repositories and for individual repositories. If code scanning is customized using repository properties, the customization applies to all setup types.
The following is an overview of repository properties you can set up which affect code scanning analyses when configured:
| Name | Type |
|---|---|
github-codeql-extra-queries | Text |
github-codeql-disable-overlay | True/false |
github-codeql-file-coverage-on-prs | True/false |
참고
The repository properties which are supported depend on the version of the github/codeql-action that is used by your code scanning analyses. For code scanning advanced setup, check that your workflow is referencing the latest major version. Code scanning default setup automatically uses the latest version.
Analysis customization
The github-codeql-extra-queries property allows you to configure additional queries that should be run. This is useful to add queries to all relevant analyses in your organization without needing to modify individual workflows or switch to an advanced setup. This accepts the same values as the queries input of the github/codeql-action. See 코드 검색을 위한 워크플로 구성 옵션.
Enabling or disabling features
You can disable improved incremental analysis by setting the github-codeql-disable-overlay property to true. This may be useful if improved incremental analysis is failing because of increased hardware requirements.
File coverage information is not calculated for analyses of pull requests. If you want to enable file coverage information for pull requests, you can set the github-codeql-file-coverage-on-prs property to true.