-
Notifications
You must be signed in to change notification settings - Fork 5.9k
feat(security): add code-scanning with CodeQL #3229
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
Conversation
24ff606
to
6e16ffe
Compare
Codecov Report
@@ Coverage Diff @@
## main #3229 +/- ##
=======================================
Coverage 46.90% 46.90%
=======================================
Files 23 23
Lines 1196 1196
Branches 237 237
=======================================
Hits 561 561
Misses 451 451
Partials 184 184 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Excellent work Mr. Previte
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are we going to handle the existing findings, are we going to fix things first, or merge and then reduce them gradually?
Looks pretty useful though!
Also seems like it might be a good idea to ignore code that we don't control (e.g. lib/vscode) if we can configure things that way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably merge and reduce gradually. Seems like a solid approach.
Good idea on ignoring lib/vscode
. I'll see if that's configurable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this in the docs: Specifying Directories to Scan
It's unclear whether this needs to be in a custom codeql config file or if I can put it in the workflow file. I'm going to try adding to the workflow file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also opened follow-up issue: #3243
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6e16ffe
to
0934acc
Compare
2364f92
to
2bf0907
Compare
This PR adds code-scanning using CodeQL (by GitHub) to help automatically detect common vulnerability and coding errors.
Fixes #3176