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

Upload Code Scanning Sarif results to GitHub #2165

Merged

Conversation

ganeshkumarsv
Copy link
Contributor

@ganeshkumarsv ganeshkumarsv commented Oct 28, 2021

Add a method to upload Code Scanning Sarif results to GitHub

@google-cla google-cla bot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Oct 28, 2021
@codecov
Copy link

codecov bot commented Oct 28, 2021

Codecov Report

Merging #2165 (504ad44) into master (d9d58a2) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2165   +/-   ##
=======================================
  Coverage   97.78%   97.78%           
=======================================
  Files         112      112           
  Lines        9976     9989   +13     
=======================================
+ Hits         9755     9768   +13     
  Misses        154      154           
  Partials       67       67           
Impacted Files Coverage Δ
github/code-scanning.go 100.00% <100.00%> (ø)
github/github.go 97.58% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9d58a2...504ad44. Read the comment docs.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We recently switched from reflect to "github.com/google/go-cmp/cmp".
Please do the same here.

github/code-scanning_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @ganeshkumarsv , but as written, this code is not going to work.

Once you have addressed all my comments, please actually test out your code using the GitHub API and verify that it works correctly.

github/code-scanning.go Show resolved Hide resolved
github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning_test.go Show resolved Hide resolved
github/code-scanning.go Show resolved Hide resolved
github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning_test.go Show resolved Hide resolved
@ganeshkumarsv
Copy link
Contributor Author

@gmlewis Thanks for all the review comments! I think I addressed all of them and tested. Please let me know if anything else needs to be changed.

github/code-scanning.go Outdated Show resolved Hide resolved
github/code-scanning_test.go Show resolved Hide resolved
@ganeshkumarsv
Copy link
Contributor Author

addressed the remaining comments.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @ganeshkumarsv !
LGTM.

Awaiting second LGTM (from any other go-github contributor) before merging.

@gmlewis gmlewis requested a review from wesleimp November 3, 2021 13:43
@ganeshkumarsv
Copy link
Contributor Author

@wesleimp @gmlewis
gentle bump on the PR 🙏

@viveknathani
Copy link
Contributor

Thank you, @ganeshkumarsv ! LGTM.

Awaiting second LGTM (from any other go-github contributor) before merging.

LGTM!

@gmlewis
Copy link
Collaborator

gmlewis commented Nov 8, 2021

Thank you, @viveknathani !
Merging.

@gmlewis gmlewis merged commit fdb62f6 into google:master Nov 8, 2021
@ganeshkumarsv
Copy link
Contributor Author

@gmlewis can we have a new release for go-github? 🙇‍♂️

@gmlewis
Copy link
Collaborator

gmlewis commented Nov 8, 2021

@gmlewis can we have a new release for go-github? 🙇‍♂️

Yes, I'll work on that today.

@ganeshkumarsv
Copy link
Contributor Author

Thank you! 😊 🙇‍♂️

@gmlewis
Copy link
Collaborator

gmlewis commented Nov 8, 2021

@ganeshkumarsv - this has been released into v40: https://github.com/google/go-github/releases/tag/v40.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indication that the PR author has signed a Google Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants