feat(codeql): Add CodeQL analysis for interpreted languages #11662
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.
Description of Change
This pull request introduces CodeQL integration for static code analysis, focusing on enhancing security and quality checks for the repository. It includes updates to the
CODEOWNERS
file, a new CodeQL configuration file, and workflows for analyzing Actions and Python code. Below are the most important changes grouped by theme:Code Ownership Update:
.github/CODEOWNERS
: Added@lucasssvaz
as the code owner for the.github/codeql/
directory.CodeQL Configuration:
.github/codeql/codeql-config.yml
: Created a new CodeQL configuration file specifying query packs, filters, and paths to ignore during analysis. This improves the granularity and focus of the CodeQL checks.GitHub Actions for CodeQL Analysis:
Actions Analysis:
.github/workflows/codeql_actions.yml
: Added a workflow for analyzing GitHub Actions code using CodeQL. It triggers onpush
tomaster
,pull_request
changes to workflow files, and manual dispatch.Python Analysis:
.github/workflows/codeql_python.yml
: Added a workflow for analyzing Python code using CodeQL. It triggers onpush
tomaster
,pull_request
changes to Python files, and manual dispatch.Tests scenarios
Tested on my fork.
https://github.com/lucasssvaz/arduino-esp32/pull/51/files/18920ee4b293c28dfd03b3bc895d17841024c03e#diff-21f48161ad48f4a72649224c1a8aef5bf2d2b15c9f6b612e325d7ae3748c94e8R19