-
Notifications
You must be signed in to change notification settings - Fork 7.7k
feat(codeql): Add CPP analysis #11682
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
base: master
Are you sure you want to change the base?
Conversation
👋 Hello lucasssvaz, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
Description of Change
This pull request introduces enhancements to the CodeQL workflow to support
.ino
and cpp files. It includes a new Python script for processing SARIF files and modifications to the workflow configuration to handle.ino
files by converting them to.cpp
files during analysis.Workflow Enhancements for
.ino
File Support:.github/workflows/codeql.yml
: Added.ino
files to the list of paths monitored by thepull_request
trigger..github/workflows/codeql.yml
: Updated the matrix to includecpp
as a language and added steps to convert.ino
files to.cpp
files with anArduino.h
include, while maintaining a mapping of renamed files.SARIF File Processing:
.github/scripts/process_sarif.py
: Introduced a Python script to process SARIF files generated by CodeQL, renaming.cpp
files back to.ino
and adjusting line numbers to match the original.ino
files.Tests scenarios
Tested in fork