Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code scanning alerts #2227

Merged
merged 23 commits into from Nov 9, 2022
Merged

Add code scanning alerts #2227

merged 23 commits into from Nov 9, 2022

Conversation

eric-nieuwland
Copy link
Contributor

Github provides an option to obtain code scanning alerts of the code in a repository as part of the API, see https://docs.github.com/en/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository.
This part of the API was not yet supported by PyGithub.

Added a method to the Repository class to obtain the codescan alerts.
Added classes to hold to the information returned.

@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2022

Codecov Report

Base: 98.77% // Head: 98.82% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (fc7358d) compared to base (3a6235b).
Patch coverage: 99.58% of modified lines in pull request are covered.

❗ Current head fc7358d differs from pull request most recent head 56dad77. Consider uploading reports for the commit 56dad77 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2227      +/-   ##
==========================================
+ Coverage   98.77%   98.82%   +0.05%     
==========================================
  Files         110      114       +4     
  Lines       11320    11510     +190     
==========================================
+ Hits        11181    11375     +194     
+ Misses        139      135       -4     
Impacted Files Coverage Δ
github/CodeScanAlert.py 98.82% <98.82%> (ø)
github/CodeScanAlertInstance.py 100.00% <100.00%> (ø)
github/CodeScanAlertInstanceLocation.py 100.00% <100.00%> (ø)
github/CodeScanRule.py 100.00% <100.00%> (ø)
github/CodeScanTool.py 100.00% <100.00%> (ø)
github/Repository.py 97.16% <100.00%> (-0.02%) ⬇️
github/Autolink.py
github/WorkflowRun.py 100.00% <0.00%> (+2.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Follow documentation style
@sfdye sfdye merged commit 7902351 into PyGithub:master Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants