Added CodeQL scanning to GitHub actions. #773
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CodeQL is a feature from GitHub that scans code for defects and vulnerabilities.
I have used it before and it has helped out on a few occasions. I believe more (automated) eyes on the codebase reviewing PRs will be useful.
The checks here will run on every PR to main or a release branch, as well as every Monday morning.
The CodeQL suite is configured to
security-extended
which primarily focuses on security related issues rather than more broad code quality checks. This suite is a bit more aggressive than thedefault
suite and sometimes may contain false-positives. These can simply be dismissed by a maintainer before merging the PR. This will check the Python and Javascript code.CodeQL scanning is free for public open-source repos (such as this one).
The only downside is sometimes CodeQL can take a bit to run so it might slow down the CI a bit. Runs usually last a few minutes.