- »
- [Reference](https://pygithub.readthedocs.io/en/stable/reference.html) »
- [Github objects](https://pygithub.readthedocs.io/en/stable/github_objects.html) »
- CodeScanRule
- [View page source](https://pygithub.readthedocs.io/en/stable/_sources/github_objects/CodeScanRule.rst.txt)
* * *
# CodeScanRule [¶](https://pygithub.readthedocs.io/en/stable/github_objects/CodeScanRule.html\#codescanrule "Permalink to this headline")
_class_ `github.CodeScanRule.` `CodeScanRule` [¶](https://pygithub.readthedocs.io/en/stable/github_objects/CodeScanRule.html#github.CodeScanRule.CodeScanRule "Permalink to this definition")
This class represents Alerts from code scanning.
The reference can be found here
[https://docs.github.com/en/rest/reference/code-scanning](https://docs.github.com/en/rest/reference/code-scanning).