Skip to content

Create CodeQL workflow file - #11

Merged
involvex merged 1 commit into
mainfrom
gh-code-scanning/codeql-analysis
Sep 17, 2026
Merged

involvex merged 1 commit into
mainfrom
gh-code-scanning/codeql-analysis

Conversation

@involvex

@involvex involvex commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary by Sourcery

Add automated CodeQL security scanning to the repository.

New Features:

  • Add a GitHub Actions workflow for CodeQL security analysis.

CI:

  • Configure automated CodeQL analysis in the repository's CI workflows.

@changeset-bot

changeset-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6321e3e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sourcery-ai

sourcery-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The pull request introduces a GitHub Actions workflow that runs CodeQL analysis for configured languages on the repository, enabling automated code scanning through the CI pipeline.

File-Level Changes

Change Details Files
Adds a GitHub Actions workflow to automate CodeQL security analysis.
  • Creates a CodeQL workflow configuration.
  • Defines the workflow’s analysis triggers, initialization, build, and scanning steps.
  • Configures the languages and permissions used by the security analysis.
"b/.github/workflows\\codeql-analysis.yml"

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

strategy:
fail-fast: false
matrix:
language: ['java']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CRITICAL: Incorrect language configured for CodeQL analysis

This Flutter/Dart project uses Dart and Kotlin (for Android), but the workflow only configures java in the matrix. CodeQL will not analyze any of the project's actual source code. Should include dart and kotlin instead of (or in addition to) java.


steps:
- name: Checkout repository
uses: actions/checkout@v3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WARNING: Outdated actions/checkout@v3

Version 3 is deprecated. Use actions/checkout@v4 for current features and security updates.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WARNING: Outdated CodeQL actions (v2)

github/codeql-action/init@v2, autobuild@v2, and analyze@v2 are outdated. Current version is v3. Update all three to @v3 for latest features and security patches.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WARNING: Autobuild won't work for Flutter/Dart projects

The autobuild action only supports compiled languages (Java, C++, C#, Go, etc.). It cannot build a Flutter/Dart project. You need to add explicit Flutter/Dart setup and build steps, or remove autobuild and use custom build commands.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 4 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 1
WARNING 3
SUGGESTION 0
Issue Details (click to expand)

CRITICAL

File Line Issue
.github/workflows/codeql-analysis.yml 23 Incorrect language configured for CodeQL analysis

WARNING

File Line Issue
.github/workflows/codeql-analysis.yml 27 Outdated actions/checkout@v3
.github/workflows/codeql-analysis.yml 30 Outdated CodeQL actions (v2)
.github/workflows/codeql-analysis.yml 35 Autobuild won't work for Flutter/Dart projects
Files Reviewed (1 file)
  • .github/workflows/codeql-analysis.yml - 4 issues

Fix these issues in Kilo Cloud


Reviewed by free · Input: 0 · Output: 0 · Cached: 0

@involvex
involvex merged commit 55be9d6 into main Sep 17, 2026
6 checks passed
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