Skip to content

Add Missing Languages to CodeQL Advanced Configuration #1570

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bkungl
Copy link

@bkungl bkungl commented Jul 14, 2025

We are working to improve and streamline CodeQL configuration at GitHub. Your repository

  1. Uses advanced CodeQL configuration
  2. Has languages in the repository that are not configured to be scanned by Code Scanning (CodeQL)

This PR adds those languages to your configuration. Merging this PR will ensure code scanning happens in your repo reliably and should eliminate future findings in Security Findings (assuming you update the configuration as contents of your repository changes).

If your repository does not require or benefit from advanced config (e.g. for compiled languages), you can change to default setup in lieu of merging this PR.

If you have concerns or questions about this, please mention @github/prodsec-engineering in this PR or drop in our slack channel with your question.

If this configuration update will work for your repository, please approve and merge this pull request

@Copilot Copilot AI review requested due to automatic review settings July 14, 2025 17:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for scanning additional languages ('actions' and 'go') to the CodeQL Advanced Configuration workflow. The change transitions from scanning default languages to explicitly configuring CodeQL to scan specific languages that were previously not covered.

  • Adds matrix strategy to enable scanning of 'actions' and 'go' languages
  • Configures CodeQL initialization to use the matrix language parameter

@@ -26,6 +28,8 @@ jobs:

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
Copy link
Preview

Copilot AI Jul 14, 2025

Choose a reason for hiding this comment

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

The indentation is inconsistent. This line should be aligned with the 'with:' parameter above using 2 spaces instead of 4 spaces to match standard GitHub Actions YAML formatting.

Suggested change
languages: ${{ matrix.language }}
languages: ${{ matrix.language }}

Copilot uses AI. Check for mistakes.

@github-advanced-security
Copy link
Contributor

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.

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.

1 participant