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

Question: customize CodeQL config to improve false positives? #982

Open
pushfoo opened this issue Oct 26, 2023 · 0 comments
Open

Question: customize CodeQL config to improve false positives? #982

pushfoo opened this issue Oct 26, 2023 · 0 comments

Comments

@pushfoo
Copy link
Contributor

pushfoo commented Oct 26, 2023

tl;dr

@Square789 and I have both had CodeQL flag lines in our PRs which were one or more of the following:

  1. Pre-existing problems either near or overlapping with parts of the project we replaced
  2. Useful to keep, such as commenting out logic which would be nice to have an ignore signal for

Potential approaches

The queries section in the codeql.yaml file should allow us to tune this.

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"

For additional context, see:

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

No branches or pull requests

1 participant