Skip to content

Add CodeQL analysis workflow configuration#2

Merged
JosunLP merged 2 commits intodevelopmentfrom
JosunLP-patch-1
Jan 23, 2026
Merged

Add CodeQL analysis workflow configuration#2
JosunLP merged 2 commits intodevelopmentfrom
JosunLP-patch-1

Conversation

@JosunLP
Copy link
Copy Markdown
Collaborator

@JosunLP JosunLP commented Jan 23, 2026

This pull request introduces a new GitHub Actions workflow to enable advanced CodeQL code scanning for security and quality analysis. The workflow is set up to analyze multiple languages and is scheduled to run on pushes, pull requests, and on a weekly cron schedule.

CI/CD and Security Improvements:

  • Added .github/workflows/codeql.yml to set up CodeQL analysis for actions and javascript-typescript languages, including scheduled and event-based triggers, and configuration for build modes and runner environments.

@JosunLP JosunLP self-assigned this Jan 23, 2026
Copilot AI review requested due to automatic review settings January 23, 2026 18:35
@github-advanced-security
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor

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 a GitHub Actions workflow to enable CodeQL security analysis for the bQuery.js repository. The workflow runs on push/PR events to main and development branches, plus a weekly scheduled scan every Saturday at 01:23 UTC.

Changes:

  • Added CodeQL Advanced workflow with matrix strategy for analyzing actions and javascript-typescript languages
  • Configured automated security scanning with appropriate permissions and build modes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The conditional runner selection includes a check for Swift language, but this repository doesn't use Swift based on the matrix configuration (only 'actions' and 'javascript-typescript' are specified). This conditional can be simplified to just 'ubuntu-latest' since Swift is not in the language matrix.

Suggested change
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
runs-on: ubuntu-latest

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@JosunLP JosunLP merged commit ffa3730 into development Jan 23, 2026
2 checks passed
@JosunLP JosunLP deleted the JosunLP-patch-1 branch January 23, 2026 18:39
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