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

Only run CodeQL if the appropriate language changes #3996

Merged
merged 38 commits into from
Nov 10, 2024

Conversation

rzuckerm
Copy link
Collaborator

@rzuckerm rzuckerm commented Nov 9, 2024

I fixed #3995

The way this works is as follows:

  • A matrix is dynamically constructed from the Changed Files job by scripts/get_codeql_languages.py
  • Before analysis is done, any files that are not changed are removed from the build since CodeQL does not have a way to exclude files
  • scripts/build_codeql_language.py build the requested file for the CodeQL analysis

@rzuckerm rzuckerm added the enhancement Any code that improves the repo label Nov 9, 2024
@github-advanced-security
Copy link

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.

@rzuckerm rzuckerm marked this pull request as ready for review November 9, 2024 03:41
@rzuckerm rzuckerm marked this pull request as draft November 9, 2024 12:29
@rzuckerm rzuckerm marked this pull request as ready for review November 9, 2024 21:10
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 nice work!

@jrg94 jrg94 merged commit da30646 into TheRenegadeCoder:main Nov 10, 2024
17 checks passed
@rzuckerm rzuckerm deleted the selective-codeql branch November 10, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any code that improves the repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only run CodeQL if the appropriate language changes
2 participants