Skip to content

ci: add CodeQL code scanning workflow - #2683

Merged
rdimitrov merged 1 commit into
mainfrom
claude/code-scanning-config-d0360f
Nov 5, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
claude/code-scanning-config-d0360f

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

  • Code scanning was not configured for this repository: CodeQL default setup reported not-configured and the code scanning API had no analyses.
  • Adds an advanced-setup CodeQL workflow (.github/workflows/codeql.yml) that analyzes Go, JavaScript/TypeScript, Python, and GitHub Actions on pull requests to main, pushes to main, a weekly schedule, and manual dispatch. Results appear as code scanning alerts in the Security tab and as PR annotations.
  • Complements the existing govulncheck and gosec (golangci-lint) gates with inter-procedural dataflow analysis, Actions workflow analysis, and persistent alert history.

Issue relationship

None.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe): CI security scanning

Test plan

Baseline checks

  • Linting (task lint): no Go changes; the workflow was linted with the repo's pinned actionlint v1.7.12 instead.
  • Fast offline test suite (task test): skipped, no Go or Taskfile changes.
  • Pre-review race suite (task test:race): skipped, no Go changes.
  • Offline demo (go run ./cmd/mecademo): skipped, no runtime changes.
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md

The workflow's own first run on this PR is the real verification.

Changes

File Change
.github/workflows/codeql.yml New CodeQL workflow, one matrix job per language
.github/workflows/README.md Index entry for the new workflow

User-facing change

None.

Special notes for reviewers

  • Permissions: workflow-level permissions: {}; the job gets only contents: read and security-events: write. Uses pull_request, not pull_request_target, matching ci.yml.
  • Pins: actions are SHA-pinned. github/codeql-action is v4.39.3, released 2026-11-04; v4.39.2 is available if a longer soak is preferred.
  • Go build: uses build-mode: autobuild, which picks up go.work and its modules. If extraction struggles with the microVM modules, the fallback is a manual go build step.
  • Do not also enable default setup in repository settings; it conflicts with an advanced-setup workflow.
  • The Analyze (...) checks are not required. Add them to branch protection after they have run successfully if they should gate merges.

🤖 Generated with Claude Code

Code scanning was not configured: default setup reported
not-configured and the repository had no analyses. Add an advanced
setup workflow that analyzes Go, JavaScript/TypeScript, Python, and
GitHub Actions on pull requests, pushes to main, and a weekly schedule.

It complements the govulncheck and gosec gates in ci.yml with dataflow
analysis and persistent alert history. The job runs with read-only
contents and security-events: write only, and uses pull_request rather
than pull_request_target.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@rdimitrov
rdimitrov merged commit 293564d into main Nov 5, 2026
44 checks passed
@rdimitrov
rdimitrov deleted the claude/code-scanning-config-d0360f branch November 5, 2026 10:48
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Nov 18, 2026
2 tasks
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