Skip to content

CodeQL Configurations #45

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

Merged
merged 10 commits into from
Feb 19, 2024
Merged

CodeQL Configurations #45

merged 10 commits into from
Feb 19, 2024

Conversation

GeekMasher
Copy link
Contributor

@GeekMasher GeekMasher commented Feb 14, 2024

This pull request primarily introduces a new feature to the GitHub Actions workflow that allows for the testing of CodeQL configurations. It includes the addition of a bash script for compiling and testing configurations, updates to the build workflow to include a new job for configuration testing, and modifications to the README files to reflect these changes. Additionally, two new configuration files have been added to the configs directory.

New Feature - Configuration Testing:

  • .github/scripts/pr-configs.sh: A new bash script has been added that compiles and tests CodeQL configurations. It takes a pull request number as an argument, and for each file in the pull request, if the file is a configuration file, it compiles and tests the configuration.

  • .github/workflows/build.yml: The build workflow has been updated to include a new job, configs, which runs on ubuntu-latest and depends on the compile job. This job checks out the repository, initializes CodeQL, and runs the new pr-configs.sh script if there are changes in the configs directory.

Documentation Updates:

  • README.md: The README has been updated to include information on using community packs with provided configuration files, and a link to the configs directory has been added in the Support section. [1] [2]

  • configs/README.md: A new README file has been added to the configs directory, providing details on the purpose and usage of the configuration files in the directory.

New Configuration Files:

  • configs/audit.yml: A new configuration file for auditing code using CodeQL. It includes references to audit query suites for several languages.

  • configs/default.yml: A new default configuration file for using CodeQL Community Packs. It includes references to queries for several languages.

@GeekMasher GeekMasher marked this pull request as ready for review February 14, 2024 17:06
@GeekMasher GeekMasher merged commit ffbddb1 into main Feb 19, 2024
@GeekMasher GeekMasher deleted the geekmasher-configs branch February 19, 2024 09:46
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

Successfully merging this pull request may close these issues.

2 participants