FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(security): add code-scanning with CodeQL by jsjoeio · Pull Request #3229 · coder/code-server · GitHub

feat(security): add code-scanning with CodeQL - #3229

Merged
repo-ranger[bot] merged 3 commits into
mainfrom
jsjoeio/add-code-scanning
Apr 27, 2021
Merged

feat(security): add code-scanning with CodeQL#3229
repo-ranger[bot] merged 3 commits into
mainfrom
jsjoeio/add-code-scanning

Conversation

jsjoeio commented Apr 26, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

This PR adds code-scanning using CodeQL (by GitHub) to help automatically detect common vulnerability and coding errors.

Fixes #3176

jsjoeio added the security Security related label Apr 26, 2021
jsjoeio self-assigned this Apr 26, 2021
jsjoeio force-pushed the jsjoeio/add-code-scanning branch 3 times, most recently from 24ff606 to 6e16ffe Compare April 26, 2021 22:29
jsjoeio marked this pull request as ready for review April 26, 2021 22:31
jsjoeio requested a review from a team as a code owner April 26, 2021 22:31
jsjoeio added this to the v3.9.4 milestone Apr 26, 2021

codecov Bot commented Apr 26, 2021
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #3229 (2bf0907) into main (01e001d) will not change coverage.
The diff coverage is n/a.

@@           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.

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

jsjoeio changed the title security: add code-scanning with CodeQL feat(security): add code-scanning with CodeQL Apr 27, 2021

jawnsy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice! Excellent work Mr. Previte

Comment thread .github/workflows/codeql-analysis.yml Outdated
Comment thread .github/workflows/codeql-analysis.yml Outdated
# make bootstrap
# make release

- name: Perform CodeQL Analysis

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Probably merge and reduce gradually. Seems like a solid approach.

Good idea on ignoring lib/vscode. I'll see if that's configurable

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@jsjoeio Replying here so it's threaded

  • @jawnsy how did you know to go here for the Code scanning alerts?

I found it by clicking looking at the Actions result, then clicking "view all alerts" - super unintuitive lmao

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Also opened follow-up issue: #3243

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

And...there's my answer! I'll do it the proper way instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Comment thread .github/workflows/codeql-analysis.yml Outdated

jsjoeio commented Apr 27, 2021
edited
Loading

Copy link
Copy Markdown
Contributor Author

P.S. - @jawnsy how did you know to go here for the Code scanning alerts?

My intuitive would have told me they show up here but that's not the case 🤷‍♂️

jsjoeio force-pushed the jsjoeio/add-code-scanning branch from 6e16ffe to 0934acc Compare April 27, 2021 22:23
jsjoeio force-pushed the jsjoeio/add-code-scanning branch from 2364f92 to 2bf0907 Compare April 27, 2021 22:38
repo-ranger Bot merged commit 9f7ceef into main Apr 27, 2021
repo-ranger Bot deleted the jsjoeio/add-code-scanning branch April 27, 2021 22:55
jsjoeio added the chore Related to maintenance or clean up label May 14, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Related to maintenance or clean up security Security related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explore CodeQL or other static code analysis tools

2 participants


Back | FazBrowse Home | New Git URL